Android Application Development Tutorial – 90 – WebView navigation methods

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

34 responses to “Android Application Development Tutorial – 90 – WebView navigation methods”

  1. Uday Rane Avatar

    Nice tutorial bro,
    But i'm getting this error >>http://postimg.org/image/n0bbpm6dz/ in the app. Could you help me in this regard!!!

  2. Bryan Ibrahim Avatar

    I don't see any need of putting if(ourBrow.canGoBack)) ||  if(ourBrow.canGoForward) since they perfectly work without them.

  3. Lana Murphy Avatar

    When I hit the go button it brings up my systems browser instead of the the simple browser.

  4. Troy Ralphio Avatar

    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…)

  5. Samuel Bel Avatar

    dude my app keeps crashing when I try to run it.

  6. Thiago Aydos Avatar

    Now it works fine! Thanks!!

  7. idiotsnightmare Avatar

    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…

  8. idiotsnightmare Avatar

    thanks! It would have taken me a week to find that solution without this post…

    Thumbs up from me…

  9. Carlos Ferreira Avatar

    Thank you this also helped me spot the mistake I did 🙂

  10. Nawziii Avatar

    short and perfect!

  11. josueetcom Avatar

    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.

  12. MrKimbum12 Avatar

    how about to add proxy before we loadUrl in webview?

  13. Christiano Bolla Avatar

    ty, this helped my case ^^

  14. jonathan Lopez Avatar

    are you implementing onClickListener?
    and have you defined the variable your trying to add the OnClickListener to?

  15. Levi Snyder Avatar

    Check your inbox. 🙂

  16. Janelle Salisbury Avatar

    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…)

  17. Levi Snyder Avatar

    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

  18. Janelle Salisbury Avatar

    Did you figure this out? i am having the same problem. When I type an address and hit go it crashes

  19. Amlan Karmakar Avatar

    Hey man thanx, it worked 🙂

  20. Levi Snyder Avatar

    When I add the "onClickListener(this);" my application crashes. Why?

  21. DestinyHnn Avatar

    add this in OnCreate method:

    ourBrow.setWebViewClient(new WebViewClient() {
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    return super.shouldOverrideUrlLoading(view, url);

    }
    });

  22. Evgeny Tofler Avatar

    tried youtube website still did same thing as with google

  23. asfasd sd Avatar

    google openes in the new intent other sites works perfectly fine

  24. Jim R. Didriksen Avatar

    test with something else, It happened when I tried google.com but it did not when I tried my own website jimdidriksen.no

  25. VEGETADTX Avatar

    I did 🙁 and I don't know how to solve it 🙁

  26. djayjinx Avatar

    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

  27. FPV Oscar Avatar

    the best language is not always the best to learn

  28. haplillo Avatar

    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 🙂

  29. kristjanmik Avatar

    Im getting the same error, any updates on this?

  30. Jose Racionero Avatar

    @pras1106 Hi! Same thing is happening to me. Did you figure out how to solve that? Thanks.

  31. Prasanna N Avatar

    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?

  32. klofisch Avatar

    ist doesnt load any website? strange. Any ideas?

Leave a Reply

Your email address will not be published. Required fields are marked *