List of usage examples for android.os Vibrator vibrate
@RequiresPermission(android.Manifest.permission.VIBRATE) public void vibrate(VibrationEffect vibe)
From source file:Main.java
public static void vibrate(final Context context, final long milliseconds) { Vibrator v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); v.vibrate(milliseconds); }
From source file:Main.java
public static void vibrate(Context context) { Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(100); }
From source file:Main.java
public static void vibrate(Context context, long vibrationTime) { Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(vibrationTime); }
From source file:Main.java
public static void vibrate(Context context) { Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(500); }
From source file:Main.java
public static void vibrate(Context context, long milliseonds) { Vibrator vib = (Vibrator) context.getSystemService(Service.VIBRATOR_SERVICE); vib.vibrate(milliseonds); }
From source file:Main.java
public static void Vibrate(final Activity activity, long milliseconds) { Vibrator vib = (Vibrator) activity.getSystemService(Service.VIBRATOR_SERVICE); vib.vibrate(milliseconds); }
From source file:Main.java
public static void vibration(Context context) { Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(100); }
From source file:Main.java
public static void Vibrate(final Activity activity, long milliseconds) { Vibrator vibrator = (Vibrator) activity.getSystemService(Service.VIBRATOR_SERVICE); vibrator.vibrate(milliseconds); }
From source file:Main.java
public static void vibrate(Activity activity, long time) { Vibrator vibrator = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(time); }
From source file:Main.java
public static void startVibrator(Context context) { int vibrateTime = 1000; Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(vibrateTime); }