AudioManager mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 10, AudioManager.FLAG_SHOW_UI);
//音乐音量
int max = mAudioManager.getStreamMaxVolume( AudioManager.STREAM_MUSIC );
int current = mAudioManager.getStreamVolume( AudioManager.STREAM_MUSIC );
沒有留言:
張貼留言