What you learn: You will learn how to use Androids VibratorService.
Difficulty: 1 of 5
Questions/Problems: Simply post below...
Vibration is also as easy as the most things on the Android-Platform
What we need to do are 2 simple things:
- Get the Service, that is responsible for Vibration.
- Call myVibratorService.vibrate(int) .
For continuous vibration you could write the following:
Do not forget to interrupt the Thread somewhen
This is the output you can see in the LogCat: