Corona drain batery

For now i do my tests builds on my android htc desire, and when normally i can have my phone not loaded for two/three days, if i run my game, and leave it in the backround by pressing the home button, the batery don’t even last one day…
So it is a question of adding some code that makes the game effectively sleep (or kill itself), or will this be adressed in a next update? [import]uid: 44010 topic_id: 8530 reply_id: 308530[/import]

I too have this problem. I’m installing my game on my Droid X. Game runs as expected. However, if I leave the game run and do something else on my phone or put my phone in sleep mode, it appears that the game doesn’t suspend and eats battery at a fast rate. I have a timer running in my game. If I suspend the timer on applicationSuspend will this solve my problem?

Thanks,
Wayne
[import]uid: 31571 topic_id: 8530 reply_id: 30632[/import]

I’ve the same problem and need a solution soon. Anyone can help us??? [import]uid: 70625 topic_id: 8530 reply_id: 57366[/import]

+1 [import]uid: 70625 topic_id: 8530 reply_id: 57556[/import]

This post hasn’t had any responses in a while but I am wondering if anyone was able to find a solution to this. My app does the same thing when moving away from it.

Any thoughts or suggestions?

Thanks [import]uid: 73307 topic_id: 8530 reply_id: 62742[/import]

On thing that helps is to lower the sensivity of the device sensor calls. This is how I do it :
[lua] system.setAccelerometerInterval( 10 )
system.setGyroscopeInterval( 10 )
–system.setIdleTimer( false )
system.setLocationAccuracy( 3000 )
system.setLocationThreshold( 10000 )[/lua] [import]uid: 5712 topic_id: 8530 reply_id: 62816[/import]

Another thing might be to act on the navigation keys for Android and deactivate stuff in your game:

http://developer.anscamobile.com/reference/index/events/key [import]uid: 5712 topic_id: 8530 reply_id: 62817[/import]