I did this: <uses-permission android:name="android.permission.VIBRATE"/>
But it still won't work. What gives? Simone On Mon, Mar 29, 2010 at 9:33 PM, Dan Sherman <[email protected]> wrote: > Make sure you have the vibrate permission in your manifest. > > - Dan > > > On Mon, Mar 29, 2010 at 1:31 PM, Simone <[email protected]> wrote: > >> Hi, I need in my application to make the device vibrate during the >> playback of a sound. >> I did something like this: >> >> Vibrator >> vibrator=(Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE); >> ... >> vibrator.vibrate(mp.getDuration()); >> >> but it makes the application crash. What am I doing wrong? Does the >> emulator support the vibration? >> Thanks >> Simone >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<android-developers%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> >> To unsubscribe from this group, send email to android-developers+ >> unsubscribegooglegroups.com or reply to this email with the words "REMOVE >> ME" as the subject. >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe from this group, send email to android-developers+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

