1. Are you ready for the Galaxy S20? Here is everything we know so far!

onBackPressed

Discussion in 'Android Development' started by a2345, May 22, 2011.

  1. a2345

    a2345 Lurker
    Thread Starter

    @Override
    public void onBackPressed() {
    mWebView.goBack();
    return;
    }
    I am using code above in tutorial example in activity and it does not work :-(
    It was working but I did play with some settings and now it does not :-(
    How to make it work again?
    When I click Back - debugger show following:
    No keyboard for id 0
    Using default keymap ...

    Please help
     



    1. Download the Forums for Android™ app!


      Download

       
  2. miXer

    miXer Android Enthusiast

    Which API Level are you developing on? onBackPressed were introduced in API Level 5
     
  3. uaeHamed

    uaeHamed Newbie

    Maybe you accidently changed the settings of the Virtual Device. Try setting it up again from the tutorial.
     

Share This Page

Loading...