I have included a uses-permission to WAKE_LOCK statement in the Android manifest file.
if(checkCallingOrSelfPermission(permission.WAKE_LOCK) == PackageManager.PERMISSION_GRANTED) { Log.i("tag", "WAKE_LOCK permission granted"); } else { Log.i("tag", "WAKE_LOCK permission denied"); } The above code gives permission granted when run from the Activity, however, when run inside a Service, it gives permission denied. Is there any way to acquire a WAKE_LOCK inside a Service? Am I doing something wrong? Thanks so much. Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---