My Game uses the Accelerometer during a few sections of gameplay, but most of the time it doesn’t use it.
When I’m finished with it I try setting the interval to 0 with this function:
http://docs.coronalabs.com/api/library/system/setAccelerometerInterval.html
But I get an error:
Warning: …/menu.lua:1186: system.setAccelerometerInterval() frequency of 0 below minimum. Using minimum allowed frequency of 10 instead
This means the battery is still being drained. Is there anyway to turn off the accelerometer when you don’t need it anymore?