views:

106

answers:

1

hi friends,

I have a small problem... i tried searching high and low but couldnt find a way i can activate and deactivate the vibration at the time of incoming calls...

The option in the menu --> Settings --> Sounds & Display mentions - PHONE VIBRATE - vibrate phone for incoming calls...

i want to activate and deactivate it through code(if possible)...

Thanx...

A: 

Have a look AudioManager:

http://d.android.com/reference/android/media/AudioManager.html

and setRingerMode/setVibrateSetting:

http://d.android.com/reference/android/media/AudioManager.html#setRingerMode(int)

http://d.android.com/reference/android/media/AudioManager.html#setVibrateSetting(int, int)

disretrospect
wow!!! i thought it must b somewhere in other classes... thanx for the proper guidance... and sorry for behaving ratherly stupidly...
JaVadid