I used Navigation drawer , with number of fragments. I want to call onResume() of fragment , Where i need to load updated data from server.
onResume()
will be called when your Activity onResume()
is called, you don't have to call onResume()
in a Fragment
.
Read this to understand the Fragment Lifecycle
If you want to do it from your Fragment
you should do something like this
@Override
public void onResume(){
super.onResume();
//OnResume Fragment
}
Also if you have to do something general you can do it on your Activity
it's the same as the Fragment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With