When calling the startActivity function (intent intent) from my activity, the onDestroy () method is always called on it, so I lose the state of the fragments, etc.
I understand that onStop must be called, and onDestroy may or may not be called. But my experience is that initial activity is always destroyed.
I understand that if I have activity with listView, with an adapter, etc. Android does not expect me to monitor the status of the adapter simply because I click another action on top of it, right?
Am I right? What can cause this behavior?
thanks
source share