Presumably your sound can be as loud as any sound any other SDK application 
is producing.  Do you have to play an intelligible sound file, or might it 
be enough to mix in enough "klaxon" or "buzzer" of various sorts that the 
user realizes *something* atypical is happening, picks up the device, and 
is then able to see notifications?

If your users listen to unusual tracks, you may want to cycle through an 
assortment of alarm types until you get user interaction.  You could 
perhaps start with something fairly mild and informative intended to work 
in quiet times, and escalate to the "this should bother you enough to pick 
up the device" sounds. 

On Friday, March 23, 2012 3:09:17 PM UTC-4, dmv wrote:
>
> I am tryingto build an app that will alert the user in case of an 
> emergency by playing an audio file. To override situations where the 
> user may be playing loud music and the emergency announcement may not 
> be heard by the user (due to sharing of audio h/w with multiple apps), 
> can I get exclusive access to audio output so only my audio stream is 
> audible and rest all are stopped/killed/muted? I have tried a lot of 
> googling and studied the sdk documentation but did not find anything 
> that can solve my problem. Thanks for your time. 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to