We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1120b0 commit cb7dbedCopy full SHA for cb7dbed
app/src/main/java/org/bspb/smartbirds/pro/service/ExportService.java
@@ -3,6 +3,7 @@
3
import android.app.IntentService;
4
import android.content.Intent;
5
import android.net.Uri;
6
+import android.support.v4.content.FileProvider;
7
import android.util.Log;
8
9
import org.androidannotations.annotations.Bean;
@@ -84,6 +85,7 @@ public void prepareForExport() {
84
85
return;
86
}
87
- eventBus.post(new ExportPreparedEvent(Uri.fromFile(exportFile)));
88
+ Uri uri = FileProvider.getUriForFile(getApplicationContext(), SmartBirdsApplication.FILES_AUTHORITY, exportFile);
89
+ eventBus.post(new ExportPreparedEvent(uri));
90
91
0 commit comments