My application has three activities say A -> B-> C
.
Activity A is called from another activity through startActivityForResult()
. Activity B and C are also called similarly. I have to call activity A from notifications bar also (if there is some specific notification).
Now, if currently I am in activity B or C, and I click on Notification bar, and call the activity A, the app goes to Activity A only and data entered through activites B or C do not persist.
I don't want such behavior. I want that if I click on Notification, it should redirect to current screen only. Can some one help. (I mentioned activity:launchMode
as SingleTask
).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…