Reputation: 8487
How to store previous activity
value in android
Upvotes: 1
Views: 550
Reputation: 3004
Intent mainIntent = Intent(ThisActivity.this, UpComingActivity,class);
mainIntent.putExtrat("To Store", "Value");
Afterwards then getExtra can be used with the KeyValue for getting the OutCome.
Upvotes: 1
Reputation: 5298
Could you describe your use case? Do you want to get the return value when you started your activity with startActivityForResult? Or maybe you want to know what was the activity that started your one? Or is it sth else?
Upvotes: 1