Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent intent = new Intent();
- intent.setAction(Intent.ACTION_SEND);
- Log.d(LOGTAG, "Sharing picture " + mFileSaved);
- intent.setDataAndType(Uri.fromFile(new File(mFileSaved)), "image/*");
- //Also tried
- //intent.setDataAndType(Uri.parse("file://" + mFileSaved), "image/*");
- startActivity(intent);
- // Log Output
- // Sharing picture /storage/sdcard0/Pictures/Smile/smile-2012-9-9-0.png
Add Comment
Please, Sign In to add comment