Skip to main content

Temporarily Lock or Disable iphone home button


I know the iphone home button is extremely crucial for the functioning of the iphone.





However I have an idea for which I need the application running and the home button to be disabled. I tried googling, but haven't been able to find a solution.



Temporary or timed locking (Lock for 5/10 mins.) would also do.



The app. should work on non-jailbroken phones, hence going around apple won't work.



Appreciate any ideas.


Source: Tips4allCCNA FINAL EXAM

Comments

  1. For the record, it's silly that people are saying "Why would you want to do this?"

    it's a great idea for example for APPS FOR SMALL CHILDREN (which is indeed a very large market on the iPhone).

    If you've ever marketed an app for small children, you'll know that instantly parents write in abusing you because you "did not stop that stupid home button working, so the child just turns off the game and makes phone calls"

    To which you have to reply that it's of course not possible because of the way the iPhone works.

    So yes it's a good question. As far as I know, Planet, it is not possible.

    Apple should add a "kids mode" where parents can lock the fone on TO one particular app for awhile. (Perhaps you would have to long-press or something the home button to unlock it.)

    Also be sure to see Rob's answer at the bottom!

    ReplyDelete
  2. This is against the iOS interface guidelines, and apps have been rejected for "overriding" or restricting behaviour of hardware buttons/switches.

    I suggest you have a read of the App Store Review Guideline for iOS apps for a good overview of what you shouldn't be doing.

    Particularly:


    10.5

    Apps that alter the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, will be rejected


    Pretty sure that the Home button is included in that.

    I'm not sure what your "idea" is here, but I would suggest you look into other things such as backgrounding. There is a feature that allows you to finish executing tasks in the background, even if the user presses the home button, and optionally display a notification after certain time (before the task "expires"). I imagine that this might offer a more appropriate solution (again dependent on what your idea actually is).

    ReplyDelete
  3. BubCap.com sells home button covers that effectively deter toddlers from pressing the home button.

    ReplyDelete
  4. Ya, this will never get past the Review Team. Why do you want to do this? maybe there's a better implementation we can come up with to help you.

    ReplyDelete
  5. You can't unless you want to run it on jail broken devices.

    ReplyDelete
  6. Apple currently will not allow any software to disable or change ANY button functionality for iPhone, iPad, and iPod touch, so the only software solution is to jailbreak the device, so you're not forced to live by Apple's rules.

    However, PaperclipRobot.com is about to release a home button cover specifically targeted to keeping young kids from pressing the home button. Not the exact solution to your problem as stated, but I figured it added to the discussion.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.