deactivate stand-by of iphone

Member
Posts: 164
Joined: 2010.10
Post: #1
i have an app that doesn't use touch, but only voice.
so, after some times, the iphone goes to stand-by makeing the screen black while the app is running!
how can i solve this problem?
thanks
Quote this message in a reply
Member
Posts: 164
Joined: 2010.10
Post: #2
perhaps i have find it here:
http://developer.apple.com/library/ios/#...TP40006728

idleTimerDisabled
A Boolean value that controls whether the idle timer is disabled for the application.

@property(nonatomic, getter=isIdleTimerDisabled) BOOL idleTimerDisabled
Discussion
The default value of this property is NO. When most applications have no touches as user input for a short period, the system puts the device into a "sleep” state where the screen dims. This is done for the purposes of conserving power. However, applications that don't have user input except for the accelerometer—games, for instance—can, by setting this property to YES, disable the “idle timer” to avert system sleep.

tonight i'll try Smile
Quote this message in a reply
Member
Posts: 164
Joined: 2010.10
Post: #3
i have sett the property to YES, but the iphone goes to standby anyway!
Code:
[UIApplication sharedApplication].idleTimerDisabled = YES;
Quote this message in a reply
Post Reply