How can I avoid that when I call a fragment, it is not recreated, but it shows the data I had from the beginning?

0

I am doing a project in Android Studio, I require that, in a navigation drawer, when selecting a fragment that had already been loaded and emptied information in it (it is the first fragment that appears, in the onCreate event), the task to recreate and re-do the information query to fill it, when the user selects it again. This is to save mobile data to the User, because the information that is downloaded there is rather heavy. Something like the OnResume () event of the common activity.

    
asked by Josua Ramirez 05.03.2018 в 02:13
source

0 answers