You can force the WebView to be "destroyed" with:
Dim jo As JavaObject = WebView1
jo.RunMethod("destroy", Null)
Call it in Activity_Pause and make sure to create a new WebView in Activity_Resume.
Thanks
@Erel . Like I told to
@Jeffrey Cameron , it's interesting to have the streaming working in background when the user navigates to other activities (and the streaming is generated dynamically by site, then it's not possible to connect directly). Then, could be very useful if I could:
1. Check if the webview instace is active - then, I could to test in _Resume and avoid to load one more if is still running and...
2. Destroy the instance outside the parent activity: maintaining, for example, a floating window (overlay window) where user could stop the streaming... this window could be showed when parent activity is paused and closed when opened or the webview instance is closed.
To do this, I need to be able to reference the webview outside the parent activity and check if it's running or not. Referencing that with javaobject could be useful if could be done in this way:
1. Create webview dinamically from Process_Global (then, the object will be valid in the entire app process and will be unique
2. Load and unload in activity dynamically also...
I'm not sure if you understood but I think that this is the best solution... any suggestion?