android-wake-lock

Android - When using LocationManager.requestLocationUpdates, do I need a WakeLock?

My app periodically checks the location using an alarm to a BroastcastReceiver that starts a service. I know I should acquire a wakelock before I start the service but my question is when can I release it? If I release the wakelock after calling requestLocationUpdates, can the device go to sleep and not call my LocationListener or will...

Read sensors while screen is black

Hi here there is a interesting problem! I have this service: public class SensorService extends Service implements SensorEventListener { private static final String TAG = "MyService"; private MyServiceBinder myServiceBinder = new MyServiceBinder(); private SensorManager mSensorManager; ........... private PowerManager.WakeLoc...