Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vibrator in android

Tags:

android

How to create Vibrator object and call vibrate function? http://developer.android.com/reference/android/os/Vibrator.html doesn't give much information regarding how to create the object ( no public constructors )

like image 770
Suresh Avatar asked Jan 21 '23 22:01

Suresh


1 Answers

I think you're looking for:

Vibrator bzzz = (Vibrator) getSystemService(VIBRATOR_SERVICE);

See the docs.

like image 150
Felix Avatar answered Jan 23 '23 12:01

Felix