I am making an Android iBeacon Application where a notification pop-up message is received with vibration,sound or light and these are controlled by a switch.So my question is how to handle these features for notification with a switch in "on" & "off" state.
For my purpose i have already given permission for vibration in Manifest like this:
uses-permission android:name="android.permission.VIBRATE"
Apart from this i"m using the following codes for my purpose:
notif.defaults |= Notification.DEFAULT_SOUND;
notif.defaults |= Notification.DEFAULT_VIBRATE;
notif.defaults |= Notification.DEFAULT_LIGHT;
Apart from this,i have already researched well and followed look-alike similar questions: How to use notification with sound and vibration? How can I enable vibration and lights using the Android notifications api? Vibrate and Sound defaults on notification and etc but none of these solve my issue. I have even gone through developers doc:http://developer.android.com/guide/topics/ui/notifiers/notifications.html.