Can't get values from acceleration sensor android after turn off the screen
<p>Android version 2.2+<br/></p>

<p>Is there any way that I can still get the values from the acceleration sensor even after the screen is turned off (I already made my program as an activity)? When the screen-on is timeout, I will release the wake lock that I used to wake up the phone (to turn the screen on)</p>

<p>Note: When I tried my program in the debugging mode (connected to my computer), it worked fine.</p>

<p>P/s: There is one funny thing, when I tried my program on my sony arc s (stock rom 2.3.4), it stopped sending values from acc sensor after about 10 minutes, but in my friend's phone, he uses cooked rom Cyanogenmod 7, it stopped sending immediately after the screen had turned off. This made me wonder that would android have shallow sleep mode and deep sleep mode. I assumed that in shallow sleep mode, all activities would be able to run normally, but in deep sleep mode, only system activities could run. Am I right?</p>

<p>Thank you!</p>
