Reputation: 479
I've adapted the code in http://code4reference.com/2012/07/tutorial-on-android-alarmmanager/ taking a picture every 30 sec. It works ok but when the phone goes in sleep mode it seems that the alarmManager does not make its job properly. Is there a way to make alarmManager able to wakeup the phone?
Upvotes: 0
Views: 92
Reputation: 18725
You need to implement a WakeLock.
http://developer.android.com/reference/android/os/PowerManager.WakeLock.html
This requires a specific permission, and is generally frowned upon by users.
Upvotes: 1