Issue
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).
Solution
My program needs only to set "No History" option of my activity to "false"
- at Manifest, Application, Application nodes, then select my activity-
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".
Answered By - Alaa Eldin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.