(In the recent project, it is necessary to realize message prompt tone similar to that in qq, and play the sound according to the volume plus or minus button controlled by the user. Let's share it with you. First idea: 1. Get the current system volume 0~72, and call the setVolume of SoundPool to set the volume. There are many differences between playing SoundPool and MediaPlayer.
VolumeControl\bin\com\demo\R$attr.class
VolumeControl\bin\com\demo\R$drawable.class
VolumeControl\bin\com\demo\R$id.class
VolumeControl\bin\com\demo\R$layout.class
VolumeControl\bin\com\demo\R$raw.class
VolumeControl\bin\com\demo\R$string.class
VolumeControl\bin\com\demo\R.class
VolumeControl\bin\com\demo\VolumeControl$1.class
VolumeControl\bin\com\demo\VolumeControl.class
VolumeControl\bin\classes.dex
VolumeControl\bin\resources.ap_
VolumeControl\bin\VolumeControl.apk
VolumeControl\gen\com\demo\R.java
VolumeControl\res\drawable-hdpi\icon.png
VolumeControl\res\drawable-ldpi\icon.png
VolumeControl\res\drawable-mdpi\icon.png
VolumeControl\res\layout\main.xml
VolumeControl\res\raw\msg.mp3
VolumeControl\res\values\strings.xml
VolumeControl\src\com\demo\VolumeControl.java
VolumeControl\.classpath
VolumeControl\.project
VolumeControl\AndroidManifest.xml
VolumeControl\default.properties
VolumeControl\proguard.cfg
.....)