I have included \'share via myApp\' option. I inserted following code in the receiving activity class.
// Get the intent that started this activity
I
You can try this. You can call setPic() in onActivityResult method. I have used this in an application to take photos an put it in an ImageView.
private void setPic() {
//currentPhotoPath contains path of image file.
//visorFoto is a reference to an ImageView object.
File file = new File(currentPhotoPath);
Uri imageUri = Uri.fromFile(file);
visorFoto.setImageURI(imageUri);
}