Put phone in vibrate in android Code
===

I am trying to activate vibrate in android but evrey time i press the button the app crash.....

silet.setRingerMode(AudioManager.RINGER_MODE_VIBRATE)
also i did the import thing.
and declare :
public AudioManager silent;