목록안드로이드/Audio (3)
설.현.아빠
AudioManager am=(AudioManager)getSystemService(Context.AUDIO_SERVICE); if(am.isMusicActive()) { long eventtime = SystemClock.uptimeMillis(); Intent downIntent = new Intent(Intent.ACTION_MEDIA_BUTTON, null); KeyEvent downEvent = new KeyEvent(eventtime, eventtime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE, 0); downIntent.putExtra(Intent.EXTRA_KEY_EVENT, downEvent); sendOrderedBroadca..
http://stackoverflow.com/questions/1993471/android-can-i-mute-currently-playing-audio-applications Android - can I mute currently playing audio applications? AudioManager.setStreamSolo(AudioManager.STREAM_VOICE_CALL, true); 다음과 같은 걸 고려해볼수도 있다. AudioManager audioMan = (AudioManager) getSystemService(Context.AUDIO_SERVICE); audioMan.adjustVolume(AudioManager.ADJUST_LOWER, AudioManager.FLAG_REMOVE_..
http://blog.naver.com/lowmans/100108919004