Android Question Restoring WebView when returning from background

yo3ggx

Active Member
Licensed User
Longtime User
Hello.
There is any possibility to restore a WebView when the app returns from background?
I want that the audio stream from WebView to play in the background too.

If I destroy the WebView in Activity_Pause, audio is stopped too. In Activity_Resume, the WebView is already destroyed, but the audio remains in the background and if I recreate the webwiew, 2 audio stream will be played in the same time (the old and the new one).

Any suggestion how to stop old audio later, after the WebView was already destroyed, not in the same time?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…