physical back button code


Last Updated:

  1. Amon Darthir

    Amon Darthir Active Member This Topic's Starter

    Joined:
    Feb 4, 2010
    Messages:
    27
    Likes Received:
    0
    how do you code the physical backbutton so that it will take you to the last screen you were on in your app ?
     

    Advertisement
  2. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    Use the onBackPressed() method of Activity. From the manual:
     

Share This Page

Loading...