Skip to content

Commit

Permalink
Merge pull request #34 from enocklubowa/master
Browse files Browse the repository at this point in the history
Fix sharing file to other apps
  • Loading branch information
tejpratap46 authored Jul 16, 2021
2 parents 04401cf + c7df7fd commit 8d7ae0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public boolean onOptionsItemSelected(@NonNull MenuItem item) {
intentShareFile.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);

intentShareFile.putExtra(Intent.EXTRA_STREAM,
Uri.parse("file://" + fileToShare.getAbsolutePath()));
apkURI);

startActivity(Intent.createChooser(intentShareFile, "Share File"));
}
Expand Down

0 comments on commit 8d7ae0e

Please sign in to comment.