There may be another way, but the only solution I know of is having Activity A invoke Activity B via startActivityForResult()
. Then Activity B can use getCallingActivity()
to retrieve Activity A’s identity.
More Related Contents:
- Android, Detect when other apps are launched
- Ideal way to cancel an executing AsyncTask
- Set color of TextView span in Android
- Android Drawing Separator/Divider Line in Layout?
- Best way to get user GPS location in background in Android [duplicate]
- Draw in Canvas by finger, Android
- Marquee text in Android
- Reverse engineering from an APK file to a project
- Quality problems when resizing an image at runtime
- Using the recyclerview with a database
- show icon in actionbar/toolbar with AppCompat-v7 21
- How to display image in Android’s TextView?
- Does the Web View on Android support SSL?
- How to Share Image + Text together using ACTION_SEND in android?
- How to finish current activity in Android
- Android DrawerLayout – No drawer view found with gravity
- display huge Images in Android
- How to set different applicationId for each flavor combination using flavorDimensions?
- Rotate MapView in Android
- How to deal with different aspect ratios in libGDX?
- Create a Generic Base Adapter?
- How to fix BOOT_COMPLETED not working Android
- Android BLE BluetoothGatt.writeDescriptor() return sometimes false
- Aligning textviews on the left and right edges in Android layout
- Signing an APK with an upload key provided by Google Play
- Error : No resource found that matches the given name (at ‘icon’ with value ‘@drawable/icon’)
- android.widget.Switch – on/off event listener?
- How to get a string back from AsyncTask?
- Photo capture Intent causes NullPointerException on Samsung phones only
- How to query documents containing array of objects in Firestore collection using whereArrayContains() filter on Android?