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?