I ended up handling the volume button presses myself. The solution I used is documented here: http://stackoverflow.com/questions/628659/how-can-i-manage-audio-volumes-sanely-in-my-android-app
On Mar 9, 7:39 pm, strazzere <str...@gmail.com> wrote: > Then I'd recommend looking > here:http://sdk.androidin.com/reference/android/media/AudioManager.html > > More > specifically;http://sdk.androidin.com/reference/android/media/AudioManager.html#se...) > > audio.setStreamVolume(AudioManager.STREAM_MUSIC, #); > > On Mar 9, 10:22 pm, LukeH <luke.hun...@gmail.com> wrote: > > > I'm a developer, I'm looking to change the behavior of my app, not > > install another app for changing the volume. I need some way to make > > it so that volume button presses always adjust the music stream volume > > when my activity is showing whether a sound is playing at the time or > > not. > > > On Mar 9, 7:16 pm, strazzere <str...@gmail.com> wrote: > > > > Look at some of the applications on the market. Such as Master Volume > > > Controller. > > > > You can lower the media volume, and raise your ringer volume. > > > > On Mar 9, 9:58 pm, LukeH <luke.hun...@gmail.com> wrote: > > > > > I also have exactly this issue. How can I fix it? Or as they say on > > > > internets, BUMP. > > > > > On Feb 3, 2:28 am, blindfold <seeingwithso...@gmail.com> wrote: > > > > > > My app generates and plays sound samples in one second bursts, and > > > > > this context sensitivevolumeadjustment keeps flipping between > > > > > ringtonevolumeand mediavolumedepending on split second timing > > > > > (apparently depending on whether a burst is playing or a next burst is > > > > > in preparation when thevolumebuttons are pressed). How can I pin > > > > > down (lock?) the "audio context" to prevent this? Right nowvolume > > > > > adjustment via thevolumebuttons is unworkable. > > > > > > Thanks. > > > > > > On Feb 2, 11:35 pm, Dave Sparks <davidspa...@android.com> wrote: > > > > > > > Thevolumeadjustment is context sensitive. You can tell whichvolume > > > > > > is being adjusted by thevolumedisplay. > > > > > > > If YouTube or the music player, adjusting thevolumewill affect only > > > > > > the music/video playbackvolume. Thevolumedisplay will read "Media > > > > > >Volume". If you're in the home screen, or most other apps that don't > > > > > > use audio, adjusting thevolumewill affect the ringtone/notification > > > > > >volume. Thevolumedisplay will read "RingtoneVolume". --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---