Permissions Woes (Notification)

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Permissions Woes (Notification)

Postby droozen » Thu Mar 05, 2009 6:01 pm

I'm trying to use the emulator to run a test using an Alarm Manager to set up a repeating alarm which calls my Broadcast Receiver, which displays a Notification. I set the notification defaults = Notification.DEFAULT_ALL, so my code is trying to make my phone vibrate. Whenever I try to run this notification the code fails saying I need VIBRATE permission.

In my manifest, I tried putting: <uses-permission android:name="android.permission.VIBRATE" /> both between the <manifest> tags, or just between the <receiver> tags of the receiver that needs it, but I still get a SecurityException saying I need VIBRATE permission.

Is this a drawback of the emulator, and it will always fail when trying to VIBRATE? Or am I doing something wrong when trying to set this up?
Posts: 45
Joined: Wed Feb 25, 2009 10:10 pm


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Google [Bot] and 2 guests