I'm calling a new intent for sharing from my Main Activity. It is needed to load or come back to Main Activity after user finish sharing or cancel sharing.
I use following code to call the new intent. I can't figure out how to come back to main activity again.
Intent shareImage = new Intent();
shareImage.setAction(Intent.ACTION_SEND);
String mimeTyp = "*/*";
shareImage.setType(mimeTyp);
shareImage.putExtra(Intent.EXTRA_TEXT, "This is the text that will be shared.");
shareImage.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+finalimagepath));
startActivity(Intent.createChooser(shareImage, "Share Click"));
with this code it doesn't come to the main activity after finishing the sharing intent.