Tuesday, November 8, 2011

[android-developers] Keeping an activity alive

Hi guys,

I have an extremely simple webview android app.

When I press the home button, I understand that my app goes into the background.

When I relaunch the app however, it seems to run the onCreate callback again, reloading the webview and taking a long time to resume my app.

How can I stop this from happening?

Surely if the app is only put to the background via the home button, then it should not call the onCreate action again when I relaunch?

thanks,

Lee

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate