Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- showLoading("Saving...");
- File f = new File(Environment.getExternalStorageDirectory()
- + File.separator + ""
- + System.currentTimeMillis() + ".png");
- photoEditorView.getSource().setImageURI(Uri.fromFile(f));
- Uri contentUri = Uri.fromFile(f);
- Intent share = new Intent(Intent.ACTION_SEND);
- share.setType("image/png");
- ContentValues values = new ContentValues();
- values.put(MediaStore.Images.Media.TITLE, "title");
- values.put(MediaStore.Images.Media.MIME_TYPE, "image/png");
- share.putExtra(Intent.EXTRA_STREAM, contentUri);
- startActivity(Intent.createChooser(share, "Share Image!"));
Add Comment
Please, Sign In to add comment