If you start the activity with startActivityForResult(Intent, int)
, then you can get calling activity by getCallingActivity().getClassName()
.
More Related Contents:
- start an activity after button click
- Android app crashes by switching the activity
- Activity restart on rotation Android
- How do I create a transparent Activity on Android?
- How to stop EditText from gaining focus when an activity starts in Android?
- Communicating between a fragment and an activity – best practices
- How do I disable orientation change on Android?
- How to set ringtone in Android from my activity?
- How do I pass an object from one activity to another on Android? [duplicate]
- Soft keyboard open and close listener in an activity in Android
- How to bring an activity to foreground (top of stack)?
- Error while Running Android Application – Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it
- How to start/ launch application at boot time Android
- Android – How to pass HashMap between activities?
- How to make notification intent resume rather than making a new intent?
- startActivity() from BroadcastReceiver
- Launch Skype from an App Programmatically & Pass Number – Android
- Finish parent and current activity in Android
- Why does AlertDialog.Builder(Context context) only accepts Activity as a parameter?
- Intent – if activity is running, bring it to front, else start a new one (from notification)
- How do I start an activity from within a Fragment? [duplicate]
- How to create always-top fullscreen overlay activity in Android
- Passing JSONObject into another activity
- android finish() method doesn’t clear app from memory
- Calling startIntentSenderForResult from Fragment (Android Billing v3)
- Refreshing activity on receiving gcm push notification
- Android get previous activity
- How to move Bluetooth activity into a Service
- How to prevent the activity from loading twice on pressing the button
- Android error “unable to find explicit activity class”