Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Is it possible to disable the "Home"-button?

Made an app that my 1 1/2 year old plays with, but she insists on pressing the Home-button and exiting the application. Is it possible to prevent this somehow? Like with the Power-button, getting an extra confirmation before exiting.

Thanks!

/J

— asked August 17th 2010 by Joacim Boive
  • button
  • disable
  • home
  • iphone
  • mobile
0 Comments

2 Answers

  • Accepted Answer

    Sorry, but no. The iPhone OS doesn't allow even fully Obj-C apps access to the home button, power button, or even rotational lock (on the iPad), not even knowing if it's pressed. The power button confirmation is at the iPhone OS level.

    A workaround would be to get one of those iPhone/iPod/iPad silicone sleeves, and a firm piece of plastic or card. The plastic/card to physically block the home button, and the sleeve to hold it in place.

    — answered August 17th 2010 by Blain Hamon
    permalink
    2 Comments
    • Blain, do you have any reference docs about this?, 'cause I need to detect when the user presses iPhone buttons(volume, home and lock button). Thanks!

      — commented August 27th 2012 by Luciano Laporta Podazza
    • Note: detect them when the phone is locked(sleeping)

      — commented August 27th 2012 by Luciano Laporta Podazza
  • Ho-hum.. I suspected as much. Would be possible to create some devious apps otherwise.

    Thanks for confirming my suspicions though!

    /J

    — answered August 17th 2010 by Joacim Boive
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.