How to store previous activity value in android?
开发者_开发技巧How to store previous activity
value in android
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?
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.
精彩评论