Code example for Vibrator

Methods: hasVibrator

0
 
    public boolean hasVibrator() { 
        if (mVibrator == null) {
            return false; 
        } 
        return mVibrator.hasVibrator();
    } 
 
    public void vibrate(long milliseconds) {
        if (mVibrator == null) {
            return; 
        } 
        mVibrator.vibrate(milliseconds);
    } 
}