Home > Mobile >  Android, jump problem of fragments page
Android, jump problem of fragments page

Time:09-23

Now have two activity, assuming named A, B, with A Fragment to merge, initially open for A,

Have A TextView, A layout in the layout of the android: text as the "default", when creating A is getting the data from the database to reset the TextView content,
Jump page to the B to switch back to A, however, the content of the textview has now become A "default", want to switch pages after it still real data in the database, do?

Incoherent, don't know if I express clearly no

CodePudding user response:

You put read data in the onResume

CodePudding user response:

reference 1st floor BDMH response:
you put read data in the onResume

Thank you, but just tried it on or not

CodePudding user response:

Don't know how you write code, you look at the activity, in the life cycle of the switch, which triggers, where it is