android - How to use and handle default notification in a switch with vibration,sound and light on iBeacon detection? -


i making android ibeacon application a notification pop-up message received vibration,sound or light , these controlled switch.so question how handle these features notification switch in "on" & "off" state.

for purpose have given permission vibration in manifest this:

uses-permission android:name="android.permission.vibrate"

apart i"m using following codes purpose:

notif.defaults |= notification.default_sound; notif.defaults |= notification.default_vibrate; notif.defaults |= notification.default_light; 

apart this,i have researched , followed look-alike similar questions: how use notification sound , vibration? how can enable vibration , lights using android notifications api? vibrate , sound defaults on notification , etc none of these solve issue. have gone through developers doc:http://developer.android.com/guide/topics/ui/notifiers/notifications.html.


Comments