Thats quite easy. Use AudioManager by getting the AUDIO_SERVICE of the system.
AudioManager has a few methods to adjust stream volume. Select your stream, and change the volume. On Wed, Oct 13, 2010 at 1:22 AM, ericmahlon <ericmah...@hotmail.com> wrote: > On soundboard apps, as soon as the app is loaded, the volume control > buttons change to media control buttons. > > Even if I have to designate my app to do this at launch, how do I code > that? > > > > > On Oct 12, 3:43 pm, ericmahlon <ericmah...@hotmail.com> wrote: > > On one page of my app there are sounds. > > > > Is there a line of code to allow the volume up/down buttons to switch > > to media volume control for that page of the app only? > > > > Or do I need to set it for the entire app, and how do I do that? > > > > Thanks > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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