Issue
Let's say my application has 4 activities (A -> B -> C -> D) when going forward, activity A pass a data value called category
to activity B and then activity B pass category and also and data value called level
and both used in activity D to get data from firebase realtime database. but when the user goes back to activity C and tries to go again to D data passed from A (category
) is now null. so data can't retrieve from firebase. my question is how can I solve this situation.? "I pass data using Intent by putting extras." are there any other ways?
Solution
you could use startactivityforresult and set a result intent which includes the data you want to pass back https://developer.android.com/training/basics/intents/result
Answered By - Arno den Hond
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.