How can I change the vibration pattern during an incoming call on my Android phone?

  • Thread starter Thread starter AC Question
  • Start date Start date
A

AC Question

Change vibration pattern during an incoming call on my android phone

I am trying to change the vibration pattern of my phone on receiving an incoming call. I am able to vibrate my device in case of no incoming call.

Vibrator v = (Vibrator) this.context.getSystemService(Context.VIBRATOR_SERVICE);
// Vibrate for 500 milliseconds
v.vibrate(500);

But, when I receive an incoming call, my app unexpectedly stops.
 

Latest posts

Trending Posts

Forum statistics

Threads
956,264
Messages
6,967,274
Members
3,163,498
Latest member
BLIND AL SO-CAL