
locale-audio-update-notifier
The "Locale Audio Update Notifier" is:
a "Setting plug-in" for "Locale" Android application
and it's also a Plugin, used for Tasks in "Tasker" Android application.
If you use some application that may abort Audio volume change (e.g. RingGuard or Volume Locker), this plug-in should be added to the list of Locale "Settings" plug-ins in a case the list contains any plug-in that changes Audio Volume.
Locale-Audio-Update-Notifier sends Intent (programmatic notification) to the "RingGuard" which means "Please don't abort Audio volume changes that occur now".
Links
For discussion of the plug-in's idea, please go to the Locale Feedback Forum.
If you want to see current draft of the notification API, go to the OpenIntents site: Audio Volume Update Notification Broadcast.
Use Case
Let's suppose that you use RingGuard to protect your device from accidential volume changes AND you have Locale "Situation" called "Face down" that turns all sounds off in a case device is being put on some horizontal surface... "display down" :-) You should add two setting plug-ins: both built-in Locale "Volume" plug-in and this Locale-Audio-Update-Notifier plug-in.
Add Locale-Audio-Update-Notifier setting plug-in, leave default delay = "3" seconds and type "Face down" for the Toast text:
Save this plugin, now you should see Locale-Audio-Update-Notifier setting plug-in in the "Locale - Edit situation" view:
Exit Locale view (e.g. tap "Home" device button), turn your device "Face down" slightly above your eyes to see what will happen. As soon as you manage to position your device face down and don't move it, you will see that volume icon at the top of the screen shows that volume is turned off. After a second or two... RingGuard confirmation window opens and starts counting down (15, 14, ...):
After about 3 seconds "notification" (broadcast) is being sent by Locale-Audio-Update-Notifier and Toast with your text - "Face down" - appears:
Upon receiving broadcast from Locale-Audio-Update-Notifier RingGuard closes it's confirmation dialog: volume changes confirmed.
Project Information
- License: Apache License 2.0
- hg-based source control
Labels:
Android
Locale
RingGuard
Tasker
VolumeLocker