[android] earphone(headset) plug or unplug intent action [android] earphone(headset) plug or unplug intent action https://developer.android.com/reference/android/media/AudioManager.html#ACTION_HEADSET_PLUG-Action 은 AudioMangaer.ACTION_HEADSET_PLUG. intent extra 로 아래 값들이 있다."state"0 : unplugged1 : plugged "name"headset type, human readable string "microphone"0 : microphone 기능이 없음1 : microphone 기능이 함께 있음 -manifest 를 통해서 receiver 등록되지 않는다.앱에서 명시적으로 등록해야 .. 2018. 1. 22. 반응형 이전 1 다음