Android Vibrator Vibrate vibrar(Context context)

Here you can find the source of vibrar(Context context)

Description

vibrar

Declaration

public static void vibrar(Context context) 

Method Source Code

//package com.java2s;
import android.content.Context;
import android.os.Vibrator;

public class Main {
    public static void vibrar(Context context) {
        ((Vibrator) context.getSystemService(context.VIBRATOR_SERVICE))
                .vibrate(200);//from  w  w  w .ja  v  a2 s.  c  o  m
    }

    public static void vibrar(Context context, long tempo) {
        ((Vibrator) context.getSystemService(context.VIBRATOR_SERVICE))
                .vibrate(tempo);
    }
}

Related

  1. Vibrate(final Activity activity, long milliseconds)
  2. Vibrate(final Activity activity, long[] pattern, boolean isRepeat)
  3. vibrar(Context context, long tempo)
  4. vibrate(Context context, int duration)