How to know which activity has invoked current activity?
I have 3 activities, say A, B and C. How can I identify that Activity C is called from Activity A or activity B.
Put an extra on the Intent that indicates where it originated from.
Send extras to intent stating which activity has launched it. Intent intent = new Intent(A.this, C.class); intent.putExtra("FROMACTIVITY", "A"); startActivity(intent); or Intent intent = new Intent(B.this, C.class); intent.putExtra("FROMACTIVITY", "B"); startActivity(intent); And in Activity C check the value Intent intent = getIntent(); intent.getStringExtra("FROMACTIVITY");
RxJava chain to a database and a server
Chrisjenx's Calligraphy library doesn't work
Navigation Drawer Icon Color
Twitter Highlights on android
Saving and retrieving data from sugar db without duplication
Populating ListView with data from mySQL database
Android - Dynamically changing background color of a layout
onCharacteristicChanged() not getting called for notification in BLE GATT connection
“href” value in HTML to open video in youtube app or market (Google Play) on Android
How to define gradle build flavor for phone only by excluding tablet resources?
Firebase querying data
How do I get the linearlayout to take up the whole space of the scrollview?
Broadcast Receiver MY_PACKAGE_REPLACED never called
How to change DialogFragment size
width and height are wrong in AppCompatActivity
Android Layout match_width