How does Notification.DEFAULT_VIBRATE work? If I set:
notification.defaults |= Notification.DEFAULT_VIBRATE;
what’s going to happen?
The documentation is not clear. How can I make the phone vibrating if and only if the vibrate-option for the native sms application or for the call is set to true?
You need to add following permition for enabling vibrate.
And for detecting vibrate mode you can use AudioManager’s getRingerMode() method
EDIT
You can check user’s vibrate settings of call and notification using following code