Force Back Button For Android To Exit The App

Discussion in 'How Can I...?' started by zznxajgz, Oct 12, 2016.

  1. zznxajgz

    zznxajgz Boxer

    Joined:
    Mar 20, 2016
    Messages:
    24
    Likes Received:
    8
    Hello Boxers , Thanks a lot for the great support that you provide so far on this Forum, and that is awesome, currently 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 , or at least not being buggy like my app , sometimes we i close it i hear some weird sounds even if i closed it using the sleep button , how can i prevent this from happening, and again thank you so much for your help
     
  2. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    @zznxajgz a trick what i figure out is : Add frames to "Close" Menu UI and you should have a button "Back" , then your game it will close
     
    Last edited: Oct 19, 2016
    jcalle likes this.
  3. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    [​IMG]
     
    zznxajgz and jcalle like this.
  4. zznxajgz

    zznxajgz Boxer

    Joined:
    Mar 20, 2016
    Messages:
    24
    Likes Received:
    8
    Thanks man that worked great
     
    blad300 likes this.
  5. crossless

    crossless Boxer

    Joined:
    Jun 21, 2017
    Messages:
    5
    Likes Received:
    0
    could you please add a pictures or video describe that.. I could not get it.
     
  6. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    I mean, every UI have "Frames" for animation menu, like when it's Open, Idle, Close, if in your "Main Menu" the last menu , you want to exit, add "Frames" to Close ,and a button with Back action, then the game will exit
     
  7. runrollgames

    runrollgames Boxer

    Joined:
    Jan 14, 2016
    Messages:
    77
    Likes Received:
    27
    I didn't get it. An image or a video could help ..
     
  8. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
  9. johnvs

    johnvs Boxer

    Joined:
    Aug 25, 2017
    Messages:
    19
    Likes Received:
    1
    I tried as u said it did not work? when i pressed it does nothing. If i pressed back button after coming from game ui, it is taking me to game ui again.
     
  10. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    I don't know in what BB version i found this but : For example, i made a game in 2.2.7 and that game work only with BB 2.2.7 .
    Maybe they change something and it's not work anymore, but this was tested in many games before, and was everything fine .
     

Share This Page