找回密码
 立即注册
VolumeControldemoclassbin | android开发 2022-10-29 49 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
最近项目中要实现相似qq中来消息提示音,依据用户控制的音量加减键来播放声响。跟大家共享一下。首要思路:1、取得当时系统音量0~72、调用SoundPool的setVolume来设置音量大小。播放声响SoundPool和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
.....

(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
.....)

[下载]20534034405.rar




上一篇:android 音乐播放器歌词列表式同步显示
下一篇:android 底部菜单案例分析