Thank you for your help Mark. > You are already inside a partial wake lock in the onReceive() method of > a BroadcastReceiver invoked via AlarmManager.
Yeah I know that I just wanted to make sure that I really have the wake lock. But as you mentioned it doesn't make any difference. > >> - Alarm Service gets fired every 30 seconds (well the timer can be > >> adjusted) > > That's really too frequent, particularly for an IntentService. As, as > you note, you do not need one for registering a Notification. What do you mean exactly by that? Well I know that 30 seconds or even lower is very frequent but I would let the user decide how often he would like to be notified. > Why do you have two Notifications? Why not have one Notification that > vibrates and plays the sound? Because I want to be able to cancel every kind of notification (sound, vibrate, led) on its own. Everything gets its own ID. I am calling the notification for sound before the vibrate notification which let me assume that the sound notification is not possible even during a partial wake lock. Even when I disable the vibrate notification completly and only start the the one sound notification the speakers sit down in silence and there is no sound notification at all. When plugging in the USB cable or switching on the screen the sound notification gets played pretty fine. On 25 Apr., 16:38, Mark Murphy <mmur...@commonsware.com> wrote: > code_android_festival_way wrote: > > Even when I acquire a partial wake lock at the beginning of > > "onReceive" and release it at the end I am getting these errors. > > You are already inside a partial wake lock in the onReceive() method of > a BroadcastReceiver invoked via AlarmManager. > > >> - Alarm Service gets fired every 30 seconds (well the timer can be > >> adjusted) > > That's really too frequent, particularly for an IntentService. As, as > you note, you do not need one for registering a Notification. > > >> Could someone tell me why the sound notification ignores the wake lock > >> and sits down in silence? > > Why do you have two Notifications? Why not have one Notification that > vibrates and plays the sound? > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Consulting:http://commonsware.com/consulting > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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