[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Android Application Development Tutorial – 90 – WebView navigation methods
by
Tags:
Comments
34 responses to “Android Application Development Tutorial – 90 – WebView navigation methods”
-
Nice tutorial bro,
But i'm getting this error >>http://postimg.org/image/n0bbpm6dz/ in the app. Could you help me in this regard!!! -
I don't see any need of putting if(ourBrow.canGoBack)) || if(ourBrow.canGoForward) since they perfectly work without them.
-
When I hit the go button it brings up my systems browser instead of the the simple browser.
-
Someone said this a year ago, this is what fixed mine: where you set up the WebView in the onCreate you need to delete the WebView… it should just be ourBrow = (WebView) findViewById(R.id.wv…)
-
dude my app keeps crashing when I try to run it.
-
Now it works fine! Thanks!!
-
i did make one modification to this… I put the setWebViewClient above the switch so i didn't have to worry about setting it in each case…
-
thanks! It would have taken me a week to find that solution without this post…
Thumbs up from me…
-
Thank you this also helped me spot the mistake I did 🙂
-
short and perfect!
-
Somebody offered a similar, longer solution but what I did was add this:
ourBrowser.setWebViewClient(new WebViewClient());
Before loading the URL in the java file.
-
how about to add proxy before we loadUrl in webview?
-
😉
-
ty, this helped my case ^^
-
are you implementing onClickListener?
and have you defined the variable your trying to add the OnClickListener to? -
Check your inbox. 🙂
-
where you set up the WebView in the onCreate you need to delete the WebView… it should just be ourBrow = (WebView) findViewById(R.id.wv…)
-
My issue was I was using an "ImageButton", my solution was:
Change the ImageButton to a normal Button, then set the background on the button to your image like this~
android:background="Your drawable .png/.jpg/.xml"
This should work, otherwise try importing ImageButton rather than Button -
Did you figure this out? i am having the same problem. When I type an address and hit go it crashes
-
Hey man thanx, it worked 🙂
-
When I add the "onClickListener(this);" my application crashes. Why?
-
add this in OnCreate method:
ourBrow.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
return super.shouldOverrideUrlLoading(view, url);}
}); -
tried youtube website still did same thing as with google
-
google openes in the new intent other sites works perfectly fine
-
test with something else, It happened when I tried google.com but it did not when I tried my own website jimdidriksen.no
-
I did 🙁 and I don't know how to solve it 🙁
-
i had a problem that i could not use my keyboard to type and could only use the softkeys on the emu. The reason is that in SDK rev 20 it is standing default to off.
to solve this you have to change "hw.keyboard=no" to yes
in the config.ini file (or add it if it is not there)if you start the avd manager you should see the location of your virtual devices
-
the best language is not always the best to learn
-
same problem here, been testing some examples downloaded from the Google Developer site but it does the same. Maybe it's a problem with the new SDK versions? Probably it'll show how to fix it in the next tutorial 🙂
-
Im getting the same error, any updates on this?
-
@pras1106 Hi! Same thing is happening to me. Did you figure out how to solve that? Thanks.
-
The site is not rendered in the webview as seen in the tutorial. It gets rendered in the new browser intent. Any one face similar situation?
-
ist doesnt load any website? strange. Any ideas?
-
THIRD
Leave a Reply