How to avoid calling onCreate method after incoming call or any other idea about this in android version 2.1?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When an activity restarts, it bypasses onCreate() so you don’t have worry about that.
That’s assuming of course that the Activity wasn’t killed because of some lack of memory. Of course, if the process was killed, you’ll have to reinitialize everything again anyway, so that’s the behavior you’ll want.
Check out the Activity lifecyle again:
http://www.androidjavadoc.com/1.0_r1_src/android/app/doc-files/activity_lifecycle.png