Force Back Button For Android To Exit The App

Discussion in 'How Can I...?' started by redaEL, Mar 18, 2017.

  1. redaEL

    redaEL Boxer

    Joined:
    Mar 7, 2017
    Messages:
    1
    Likes Received:
    0
    i do the final retouches on my app and one of the things that concerns me is that how we can force the back button on android to exit the app.

    thank you so much for your help
     
  2. Appymes

    Appymes Avid Boxer

    Joined:
    Nov 11, 2016
    Messages:
    268
    Likes Received:
    59
    It's an old problem on Android, the Buildbox team is currently working to fix it. Possibly there is a better one in the new version.
     
  3. FranciscoBala

    FranciscoBala Avid Boxer

    Joined:
    Feb 25, 2017
    Messages:
    161
    Likes Received:
    72
    Is it really required to have a "Exit" button in-game?
     
  4. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,192
    Likes Received:
    540
    On Android is highly recommended. Many people use the "back" button on the phone to exit applications.

    In the version of BB 2.2.9 Beta2, this problem is fixed temporarily.

    http://buildbox.com/forum/index.php?threads/buildbox-2-2-9-beta2.9694/
    • "B" key workaround for Android back button. Set any button to the "B" key and the Android back button will use this routing/function instead of the default behavior.
     
    FranciscoBala likes this.
  5. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Google has certain requirements if you want to be featured... I think there is a thread somewhere if you are interested. We implemented the behavior Google required into BB a couple releases ago. I believe the Android back button exits if you press it from the top-level menu (the one attached to the Start UI).
     
  6. FranciscoBala

    FranciscoBala Avid Boxer

    Joined:
    Feb 25, 2017
    Messages:
    161
    Likes Received:
    72

Share This Page