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.
المحلول
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.
نصائح أخرى
You just create an activity that contains a webview with the url you need and then you intercept the url clicks and react accordingly in your app.
http://developer.android.com/reference/android/webkit/WebView.html
لا تنتمي إلى StackOverflow