October 2018
Intermediate to advanced
464 pages
15h 17m
English
If you want the volume controls to control the volume in your app, use the setVolumeControlStream() method to specify your application's audio stream, as follows:
setVolumeControlStream(AudioManager.STREAM_MUSIC);
See the AudioManager link below for other streaming options.