I have three activities so I want to set the list of data from third activity to first activity list, how can it will be done? Please help to tackle this problem.
Asked
Active
Viewed 27 times
1
-
1do you need this? https://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android-application – Hamid Reza Sep 09 '18 at 11:59
2 Answers
1
Option 1:
Start each activity in order with startActivityForResult
and return the result from the third activity.
Option 2: You can also use Intent.FLAG_ACTIVITY_FORWARD_RESULT
while starting the second activity and then start the third activity from result. Read more here

Rachit Mishra
- 6,101
- 4
- 30
- 51
0
You can use LocalBroadcastManager for it.For example you can refer How to use LocalBroadcastManager?

vishva kapadia
- 104
- 5