请问大家如何获取媒体音量呢谢谢 使用 AudioManager的getStreamVolume (int streamType)方法 Returns the current volume index for a particular stream. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); int volume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, AudioManager.FLAG_PLAY_SOUND); 关于android上层和D-Bus的关系 菜鸟新人求解释handler.post 新接触Java,关于JNI的一点疑问 android 获取存储路径 得到的路径有问题 请教,如何让用户在apk安装时,弹出信息提示及选择的功能 android怎么获取wifi接入点详细信息 求大神!Socket和后台服务的问题? 推荐一款“地铁程序员”Android应用给大家随时随时的学习 广州地铁APP 图形技术求问? Android 接口 和 提交最高最高分数 Android支持用C语言开发吗 android 第一次运行问题
int volume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, AudioManager.FLAG_PLAY_SOUND);