I have the activity A where I can navigate to A->B->C->D
In Activity D I have a button in which if user’ll press this button, it’ll go to Activity A. Here I’ll create a new instance where user can update value here.
I finish the activity, it’ll Go To Activity D,from Activity D user’ll press Back Button and will come to
D->C->B->AActivity A.
I need to show the updated value in Activity A, how can I update value in ‘Activity A’ ?
You’re going to want to have a whole bunch of
startActivityForResult()s and basically chain them from D back to A.See here: How can I pass values between Activities on Android?
Alternatively, you could store the value as a
SharedPreferencesand just look it up later, once you return to the original Activity.