Best code examples for Android Vibrator class (android.os.Vibrator)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Vibrator class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android Vibrator examples from Open Source projects
This code example shows how to use the following methods: vibrate
73:	vibrator.vibrate(pattern); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: vibrate
45:	vibrator.vibrate(new long[]{0, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50,  }, -1); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
34:	Vibrator mZzz = new Vibrator(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: vibrate, sleep
402:	Vibrator vibrator = new Vibrator(); 
-
404:	vibrator.vibrate(SHUTDOWN_VIBRATE_MS); 
-
412:	Thread.sleep(SHUTDOWN_VIBRATE_MS); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: cancel
121:	vibrator.cancel(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: vibrate
42:	v.vibrate((int) (1000 * s)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: vibrate
70:	vibrator.vibrate(VIBRATE_DURATION); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
42:	vibrator.vibrate(VIBRATION_PATTERN, -1); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: vibrate
97:	vibrator.vibrate(17); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate, sleep
362:	Vibrator vibrator = new Vibrator(); 
-
364:	vibrator.vibrate(SHUTDOWN_VIBRATE_MS); 
-
372:	Thread.sleep(SHUTDOWN_VIBRATE_MS); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: vibrate
223:	vibrator.vibrate(VIBRATE_DURATION); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
674:	mVibrator.vibrate(duration); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
82:	vibrator.vibrate(5000); 
-
88:	vibrator.vibrate(3000); 
-
91:	vibrator.vibrate(pattern[0]); 
-
94:	vibrator.vibrate(pattern, -1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: hasVibrator
48:	mHasVibrator = vibrator == null ? false : vibrator.hasVibrator(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
57:	mVibrator.vibrate(pattern, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: cancel
82:	vibrate.cancel(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
17:	vibrator.vibrate(2000); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
125:	mVibrator.vibrate(400); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
45:	vibrator.vibrate(new long[]{0, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50, 200, 50,  }, -1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
164:	vibrator.vibrate(milliseconds); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: Vibrator.vibrate
26:	vibrator.vibrate(params.getMsec()); 
-
28:	vibrator.vibrate(ArrayUtils.convert(params.getPattern()), r == null ? -1 : r.intValue()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: vibrate
30:	v.vibrate((int) (1000 * s)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate, sleep
362:	Vibrator vibrator = new Vibrator(); 
-
364:	vibrator.vibrate(SHUTDOWN_VIBRATE_MS); 
-
372:	Thread.sleep(SHUTDOWN_VIBRATE_MS); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
258:	mVibrator.vibrate(pattern, -1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
63:	vibrator.vibrate(time); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: cancel
33:	mVibrator.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel, vibrate, sleep
20:	Thread.sleep(2 * 1000); 
-
34:	mVibrator.vibrate(sVibratePattern, 0); 
-
36:	mVibrator.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: vibrate
49:	move.vibrate(time); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
78:	vibrator.vibrate(pattern); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: vibrate
674:	mVibrator.vibrate(duration); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel
22:	__vibrator.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: vibrate
73:	vibrator.vibrate(pattern); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: vibrate
48:	mVibrator.vibrate(milliseconds); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: vibrate
139:	mVibrator.vibrate(mHapticPattern[0]); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel
361:	mVibrator.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel, vibrate
101:	vibrator.vibrate(VIBRATE_PATTERN, 0); 
-
103:	vibrator.cancel(); 
-
114:	vibrator.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel
35:	this.vibrator.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel
108:	mVibrator.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel, vibrate
44:	mVibrator.cancel(); 
-
46:	mVibrator.vibrate(pattern, -1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: hasVibrator, vibrate
18:	return _vibrator.hasVibrator(); 
-
26:	_vibrator.vibrate(200); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: cancel, vibrate
138:	v.vibrate(stopthis,0); 
139:	v.cancel(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
34:	Vibrator mZzz = new Vibrator(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: hasVibrator, vibrate
53:	if(vibrator.hasVibrator()) { 
54:	vibrator.vibrate(1000); 
Full Snippet Info
5
CodeRank
Related Android Vibrator Questions & Answers:
See Code Examples for Android Vibrator Methods: