Long Click Vibrator - Android android.os

Android examples for android.os:Vibrator

Description

Long Click Vibrator

Demo Code

import android.content.Context;
import android.content.pm.PackageInfo;
import android.os.Vibrator;

public class Main{

    public static void LongClickVibrator(Context context) {
        Vibrator vibrator = (Vibrator) context
                .getSystemService(Context.VIBRATOR_SERVICE);
        vibrator.vibrate(50);//from  w ww.  j  av  a  2  s .c o  m
    }

}

Related Tutorials