On Mon, Dec 27, 2010 at 12:44 PM, John Lussmyer <johnlussm...@gmail.com> wrote:
> My app plays very short sounds frequently.
> I'd like the user to be able to use their normal volume controls to turn the
> volume up or down.
> The problem is that while my app is running, the volume control defaults to
> the Ringer volume, and only adjusts the Media volume if the user happens to
> press the button while one of my beeps or clicks is playing.
> How can I tell Android that while my app is active, the volume controls
> should default to adjusting the Media volume?

In the affected activity, call setVolumeControlStream().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

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

Reply via email to