Search code examples
androidwebviewadditiontemporary

Temporary Webview Android


Greetings.

I would like to have my application have a function so that when the user chooses, a web view will pop up they can look at it and then dismiss it by either pressing a button on the screen or the back button. How would I do this?

Thanks.


Solution

  • Create an Activity containing your WebView and all the other stuff you need and have that Activity be started through an Intent. When the user is done with doing stuff in the WebView just let him press the back button and you're fine.