I wrote a code that disconnects the phone when an incoming call arrives. When the phone is in vibrating mode, I use the following code to stop the phone from vibrating:
Vibrator vib = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
vib.cancel();
While it worked on my Nexus One with Android 2.1, it seems that it does not stop vibration on the HTC Desire phone with Android 2.1. Has anyone encountered this issue?
Doron
source
share