1. Are you ready for the Galaxy S20? Here is everything we know so far!

Vibrator help

Discussion in 'Android Development' started by brade, May 29, 2010.

  1. brade

    brade Lurker
    Thread Starter

    I set up my Vibrator:

    final Vibrator vibe = (Vibrator) getSystemService
    (Context.VIBRATOR_SERVICE);

    but when I call:

    vibe.vibrate(100);

    my app force closes...
    any ideas?
     


  2. IanGClifton

    IanGClifton Well-Known Member

    Did you request the permission in the AndroidManifest? <uses-permission android:name="android.permission.VIBRATE" />
     
    brade likes this.
  3. brade

    brade Lurker
    Thread Starter

    No I didn't!!! Thank you!!!
     
Loading...

Share This Page

Loading...