In my app the user can start a tracking service, that uses LocationManager to request location every X seconds.
A user reported that on his device (Galaxy Tab S2), when the device goes it sleep mode, the tracking stops after a few minutes.
I have two questions:
- is there a way to put my device in sleep mode (for testing)?
- what would be the impact of using a partial wake lock? On my device, the cpu does not seems to go in sleep anyway, so I guess that there would be no impact, am I right? Or do I need to use AlarmManager, to manually get the location every x seconds (which should imho be an option of the LocationManager, by the way...)?