[android-developers] Re: webview - hide the address bar
webview = new WebView(this); setContentView(webview); have an activity with this in the onCreate method. is this not an webview - i see an address bar. On Sep 29, 2:17 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 29, 2010 at 2:13 PM, dashman erjdri...@gmail.com wrote: how can i hide the address bar. There is no address bar on WebView. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: webview - hide the address bar
On Wed, Sep 29, 2010 at 3:24 PM, dashman erjdri...@gmail.com wrote: webview = new WebView(this); setContentView(webview); have an activity with this in the onCreate method. is this not an webview - i see an address bar. That is not a WebView. Probably that is the Browser activity. Most likely, you have told the WebView to load some URL that issued a redirect (e.g., http://www.google.com). Redirects, like clicks on links, by default open up in the Browser, even if they originated in a WebView. You can use WebViewClient and shouldOverrideUrlLoading() to find out about the redirect/click and load the page in the WebView itself. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview - hide the address bar
after the setContentView, i do webview.loadUrl(url); that seems to be creating an instance of the native browser. i guess my question is - how do i set a url w/o forcing the native browser from opening. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: webview - hide the address bar
On Wed, Sep 29, 2010 at 3:28 PM, dashman erjdri...@gmail.com wrote: after the setContentView, i do webview.loadUrl(url); that seems to be creating an instance of the native browser. i guess my question is - how do i set a url w/o forcing the native browser from opening. As I wrote previously: Most likely, you have told the WebView to load some URL that issued a redirect (e.g., http://www.google.com). Redirects, like clicks on links, by default open up in the Browser, even if they originated in a WebView. You can use WebViewClient and shouldOverrideUrlLoading() to find out about the redirect/click and load the page in the WebView itself. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en