how to know the calling activity in android

If you start the activity with startActivityForResult(Intent, int), then you can get calling activity by getCallingActivity().getClassName().

Leave a Comment