In my application, user starts the service it is open and it is called every 5 minutes. it works fine. But I want to unlock automatically (call WAKE_LOCK ) whenever the service is called i.e. every 5 minutes. How can I achieve this?
Any body please help me...
Edit 1#
private void handleIntent(Intent intent) { // obtain the wake lock
PowerManager pm = (PowerManager) getSystemService(POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, NAME);
mWakeLock.acquire();
}