Android : Android WebView onCreate is called each time when app moves to foreground

on Thursday, August 7, 2014


I am creating a simple native android application which has a webview in it. The home screen itself is the webview, thus my android application has only a singe activity which is nothing but the WebviewActivity. I observe that when ever I put my app in background and then move to fore ground, each time the oncreate is getting executed and always the loadURL is getting called, which basically reloads the whole app.


Is there any way to stop this beahviour ? I want the user to see the application immediately on coming to fore ground, with no reload happening.


Please help.


0 comments:

Post a Comment