1. Are you ready for the Galaxy S20? Here is everything we know so far!

Move data from Fragment to Activity in the back

Discussion in 'Android Development' started by umtblbl, Jan 6, 2020.

  1. umtblbl

    umtblbl Newbie
    Thread Starter

    I have a ViewPager in my Activity. I need to return the result from the fragments in the ViewPager to the activity. At the same time, the returned data will be added to the list in the activity. So I think the example of activity should not disappear. I don't know if I do it with Bundle. Would it be a good solution to move a singleton with object? What's the best practice for this, friends?



Share This Page