Top "Android-lifecycle" questions

Questions regarding the events forwarded by the system to components, during their lifetime, in an Android Application.

Fragment's reference to mActivity becomes null after orientation change. Ineffective fragment state maintenance

My application consists of several fragments. Up until now I've had references to them stored in a custom Application object, …

android android-fragments android-lifecycle android-memory
Main difference between Manifest and Programmatic registering of BroadcastReceiver

I am trying to understand the main differences between registering a BroadcastReceiver in the Manifest and registering it programmatically... My …

android broadcastreceiver android-lifecycle
How to get LifecycleOwner in a Fragment?

I need to get the LifecycleOwner to pass it in my FirestoreRecyclerViewOption but Fragment doesn't implement Lifecycle. So, how to …

android android-lifecycle fragment-lifecycle