My app simply need to detect any motion of the device while screen is off.
I know that accelerometer is used for this task but it don\'t work while screen is off in
After a quick research I found that most of android devices does not send the accelarometer events when the screen is off. To know more about this bug please take a look on here. Also here too.