When my activity is destroyed by OS because of memory (for example when a phone call is interrupting it), then when my activity tries to start again, it doesn’t come back to any expected call back except onDestroy(), how can I restore my activity again.
Note: – it doesn’t go back to neither onCreate() nor onRestoreInstanceState().
– my activity contains a thread.
Edit: isFinishing() returns false at onPause() (before interruption) and it returns true at onDestroy() when come back again (after interruption is gone).
My program needs only to set “No History” option of my activity to “false”
after that I found it doesn’t call onDestroy() when try to come back again to my activity, it calls onResume() as expected. and also set “config changes” to “orientation”.