Android Vibrator Vibrate vibrar(Context context, long tempo)

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

Description

vibrar

Declaration

public static void vibrar(Context context, long tempo) 

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);/* ww  w  .j  av a  2  s. com*/
    }

    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)
  4. vibrate(Context context, int duration)