setVolumeControlStream(AudioManager.STREAM_MUSIC); in your Activity onCreate()
On Aug 13, 11:26 am, Андрей Михайлов <[email protected]> wrote: > I'm having a lot of fun developing games/applications for android. > It has really great sdk and documentation and everything looks pretty > clear. > Except one moment: > I wrote game and one thing I want to do is that "Volume up"/"Volume > Down" phone buttons should change multimedia volume(it works in this > way in all games I played). > > BUt I can't find any documentation about this issue. My game still > changes ringtone volume and it drives me crazy. > > Please if anyone know how to solve my issue share this knowledge with > me :) > > Best regards, > Andrew. -- 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

