Vibrator help


Last Updated:

  1. brade

    brade Member This Topic's Starter

    Joined:
    May 11, 2010
    Messages:
    6
    Likes Received:
    0
    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?
     

    Advertisement
  2. IanGClifton

    IanGClifton Well-Known Member

    Joined:
    Feb 7, 2010
    Messages:
    111
    Likes Received:
    19
    Did you request the permission in the AndroidManifest? <uses-permission android:name="android.permission.VIBRATE" />
     
    brade likes this.
  3. brade

    brade Member This Topic's Starter

    Joined:
    May 11, 2010
    Messages:
    6
    Likes Received:
    0
    No I didn't!!! Thank you!!!
     

Share This Page

Loading...