Hi
I wrote payment getway that show in webview
In rotation activity,webview reload url
Can i prevent reload url and show previous webview data?(without disable rotation)
As with all views, the Webview will be destroyed when the device is rotated, so the only options are to reload the data, or prevent the rotation. That's the way Android works.
It's possible that the page may be (or could be) cached within the browser (webview) depending on the page configuration, but it would still need to be reloaded.
As with all views, the Webview will be destroyed when the device is rotated, so the only options are to reload the data, or prevent the rotation. That's the way Android works.
It's possible that the page may be (or could be) cached within the browser (webview) depending on the page configuration, but it would still need to be reloaded.
Are you sure? It can be very quick, try the attached project. I can see a transform on my Nexus 7 as it fades out and then in, but on my Sony Experia you couldn't tell that it reloads.
Are you sure? It can be very quick, try the attached project. I can see a transform on my Nexus 7 as it fades out and then in, but on my Sony Experia you couldn't tell that it reloads.