I want to identify if the Sensor used for Activity Recognition works when device screen is off.
Activity Recognition stops as soon as Device screen is turned OFF. I searched for it and found that sensor does not work when screen is OFF to save the battery.
So there is a method to identify such sensors by isWakeUpSensor(), but isWakeUpSensor() is applicable from API 21.
How can I make it work on API 14 onward. Identify sensor before starting Activity Recognition. Same as application "Moves" does