The best practice is to launch webview by some user event, Even if you want, then you can maintain a flag inside onDestroy() method of Activity, that activity is destroyed or just gone into background.
Hope it helps Thanks & BR, Pawan Rathore On Wed, Nov 9, 2011 at 1:26 PM, cipher_neo <[email protected]> wrote: > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

