Hi, when I was developing an application I came across a small problem and i hope someone would be able to help me please_. Basically when i turn on my application it works perfectly but after a few seconds it starts to go a few shades darker and after few more seconds it turns off. Does anybody know a solution to this problem ? I need the display to stay on all the time. [import]uid: 163161 topic_id: 31479 reply_id: 331479[/import]
Add this somewhere in your code(like main.lua)
[lua]system.setIdleTimer( false );[/lua]
I recently had an app get rejected on the Nook store because I prevented the device from sleeping without notifying the user. If you are going to release on nook make sure you inform the user that your app won’t be going to sleep!
[import]uid: 147305 topic_id: 31479 reply_id: 125771[/import]
Thank you very much for you help. I also would like you ask. Do you know if it is possible to allow an ordinary darkening screen and also allowing to play the music. So basically the application is running -> the screen goes darker -> and the music that was on is still playing in the app. Thank you
[import]uid: 163161 topic_id: 31479 reply_id: 125815[/import]
On the iPhone/iPad side, this is a matter of adding a line into build.settings…
Add…
UIBackgroundModes = {
"audio"
},
to the plist = {} table (where UIApplicationExitsOnSuspend = false, line is.
Then if you use the media.playVideo() api call (works on music), then the device’s screen will go dark, but the audio will continue to play.
[import]uid: 19626 topic_id: 31479 reply_id: 125835[/import]
Add this somewhere in your code(like main.lua)
[lua]system.setIdleTimer( false );[/lua]
I recently had an app get rejected on the Nook store because I prevented the device from sleeping without notifying the user. If you are going to release on nook make sure you inform the user that your app won’t be going to sleep!
[import]uid: 147305 topic_id: 31479 reply_id: 125771[/import]
Thank you very much for you help. I also would like you ask. Do you know if it is possible to allow an ordinary darkening screen and also allowing to play the music. So basically the application is running -> the screen goes darker -> and the music that was on is still playing in the app. Thank you
[import]uid: 163161 topic_id: 31479 reply_id: 125815[/import]
On the iPhone/iPad side, this is a matter of adding a line into build.settings…
Add…
UIBackgroundModes = {
"audio"
},
to the plist = {} table (where UIApplicationExitsOnSuspend = false, line is.
Then if you use the media.playVideo() api call (works on music), then the device’s screen will go dark, but the audio will continue to play.
[import]uid: 19626 topic_id: 31479 reply_id: 125835[/import]