views:

171

answers:

4

I am looking to make an app to replace the standby button. The problem, I've looked over the iPhone API very thoroughly and found how to disable standby but not how to cause the iPhone to go into standby. I'm sure there must be a way, after all the iPhone goes into standby after a time anyway. Thanks in advance for any help.

+1  A: 

I don't think so. Allowing an app to cause standby could easily be abused, as waking from standby would put you right back in the app, upon which it could force a standby again. Apple tends to not allow behaviours that can be abused like this.

ceejayoz
And thank goodness...
David Thomas
A: 

I'm sure there's a way [edit: for Apple to do it], but what I am not sure is that Apple made it available through the API.

More info here

Padu Merloti
Obviously apple could do it the buttons could do anything apple programmed them to but why would they. It would just confuse the user experience, this is one of the benefits of a tightly controlled api.
PeteT
I agree. This is the reason other platforms (like Windows based smartphones) became a zoo and ultimately led to its unpopularity.
Padu Merloti
+1  A: 

There may not be one there are obvious reasons for an app being able to disable standby i.e. video playback, turn based games...

However if you could put an app into standby whats to stop you detecting it coming out of standby and putting it back in thus making you have to do a reset or something to get out. I can't think of a reason for needing to put the iPhone in standby other than an annoyance/virus.

PeteT
A: 

Thank you all for helping. With my iPhone in one hand I can't press the top button so I wanted to build an app to put the iPhone into standby instead. Guess i'll just have to do without, Thanks Again.

Anthony Sparks