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 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

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.

Reply via email to