I have a webview that loads a url on activity create. The webpage has a javascript timer in it that runs a XMLHttpRequest at set intervals to update the html.
When the activity is paused, that javascript keeps going. I know as I can see the requests hitting the web server. It will do so as long as the activity process exists.
Then, on resuming the activity, the url is loaded back on the WebView, and now there are 2 webpages and javascript timers running! Pause and resume again, 3 timers etc.
Why does the webpage javascript keep running when the activity is paused, can it be stopped and how to make the activity's webview not start another page?
Thanks,
BTW First real project with B4A, great product.
When the activity is paused, that javascript keeps going. I know as I can see the requests hitting the web server. It will do so as long as the activity process exists.
Then, on resuming the activity, the url is loaded back on the WebView, and now there are 2 webpages and javascript timers running! Pause and resume again, 3 timers etc.
Why does the webpage javascript keep running when the activity is paused, can it be stopped and how to make the activity's webview not start another page?
Thanks,
BTW First real project with B4A, great product.