Marco Alexander Schmitz wrote:
> dear developer,
> 
> I need help on the following topic.
> 
> I just created a webview activity, and I loaded a webside into it.
> 
> Well, when the user starts to click on some button, my activity is
> gone and the default webbrowser-activity is opened.
> 
> In this case my menuitems are lost.
> 
> Is it possible to keep the browsing user inside my activity?

Step #1: Create an implementation of WebViewClient

Step #2: In that WebViewClient, implement shouldOverrideUrlLoading() and
handle whichever links you want to yourself

Step #3: Attach an instance of your WebViewClient to your WebView

http://github.com/commonsguy/cw-android/tree/master/WebKit/Browser3/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to