Can we disable Home Button?

newmessagenewmessage Posts: 42Member
edited June 2013 in General Development
Hi, 

I wondering if whether we can disable home button OUYA which will exiting apps if we pressed it twice or hold it.

I've already tried to return false it on my main activity, but it still able to close my game.
Something like this :

if ( keyCode == OuyaController.BUTTON_MENU)
return false;

Anyone can help me on this?

Thanks
Post edited by newmessage on
many thanks
-sb

Best Answer

  • OverpoweredGamesOverpoweredGames Posts: 79Member
    Answer ✓
    Well, 

    The problem is like this, 
    If in any case we are purchasing something (IAP), and while process of PURCHASING we pressed the HOME button in which causing apps kills. What will happen with the transaction? Is it success or failed? Or in worst case : we lose our money without getting the any stuffs.

    Just in case...

    :o
    I have a feeling that if they take your money, your account will be credited with the purchase.  For an 'entitlement' IAP (buy once, own forever), you may have to try to buy it again (if the game didn't get the callback confirming the purchase) -- but I think the next time you try, it won't charge you again and instead it should just send the purchaseConfirm callback to the game.  I haven't tested that yet, though.  It's also possible for a game to check receipts and it can unlock the purchase if it detects you have a valid receipt.  

    For consumable IAP, you might be out of luck if the game doesn't have a chance to confirm the purchase.  
    Developer behind FishMoto | facebook.com/OverpoweredGames

Answers

  • KonajuGamesKonajuGames Posts: 560Member
    No.  That button is the only way for users to access the system menu (hold or double press).
  • EvgizEvgiz Posts: 184Member
    Its like the Xbox home button! I hope it provides options at press rather than just quitting the app in a future update tho.

    I made the OUYA exclusive games Cube and Creature and Hellworm!
    evgiz.net




  • nicknick Posts: 186Member, Administrator, Team OUYA
    No. The home button is protected to help prevent apps from behaving maliciously.
  • Killa_MaakiKilla_Maaki Posts: 504Member
    No you cannot change the functionality, nor should you. In some games it's the only way to exit.
    You didn't remember the plot of the Doctor Who movie because there was none; Just a bunch of plot holes strung together.
  • OverpoweredGamesOverpoweredGames Posts: 79Member
    Evgiz said:
    Its like the Xbox home button! I hope it provides options at press rather than just quitting the app in a future update tho.
    A single press sends the game an event, so I use it to bring up the pause button in FishMoto -- but it's up to the dev.  It only quites the app on double press or hold and the devs (rightfully) have no control over that.  
    Developer behind FishMoto | facebook.com/OverpoweredGames
  • EvgizEvgiz Posts: 184Member
    Evgiz said:
    Its like the Xbox home button! I hope it provides options at press rather than just quitting the app in a future update tho.
    A single press sends the game an event, so I use it to bring up the pause button in FishMoto -- but it's up to the dev.  It only quites the app on double press or hold and the devs (rightfully) have no control over that.  
    Oh, sorry I stated that wrong. :P

    I hope OUYA add a menu similar to that of xbox when the Home button is double pressed instead of forcequitting to the main menu. It would be nice to have access to settings and perhaps downloads ingame. Perhaps this wont be added until the social systems are worked out?

    I made the OUYA exclusive games Cube and Creature and Hellworm!
    evgiz.net




  • newmessagenewmessage Posts: 42Member
    Well, 

    The problem is like this, 
    If in any case we are purchasing something (IAP), and while process of PURCHASING we pressed the HOME button in which causing apps kills. What will happen with the transaction? Is it success or failed? Or in worst case : we lose our money without getting the any stuffs.

    Just in case...

    :o
    many thanks
    -sb

Sign In or Register to comment.