Guest User

Untitled

a guest
Nov 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Intent intent = new Intent();
  2. intent.setAction(Intent.ACTION_SEND);
  3. Log.d(LOGTAG, "Sharing picture " + mFileSaved);
  4. intent.setDataAndType(Uri.fromFile(new File(mFileSaved)), "image/*");
  5. //Also tried
  6. //intent.setDataAndType(Uri.parse("file://" + mFileSaved), "image/*");
  7. startActivity(intent);
  8.  
  9. // Log Output
  10. // Sharing picture /storage/sdcard0/Pictures/Smile/smile-2012-9-9-0.png
Add Comment
Please, Sign In to add comment