[android] CONNECTIVITY_ACTION deprecated 에 대한 이야기 - Connectivity 가 변경되었을 때 받을 수 있는 broadcast 는 ConnectivityManager.CONNECTIVITY_ACTION 가 있었다. 그러나 이 녀석은 API 28 (POS) 부터 deprecated 되었다. - 사실 이 녀석은 이미 deprecated 의 징조를 띄고 있었다. targetSdk 24 (NOS) 부터 static receiver 로 받을 수 없게 되었고, targetSdk 26 (OOS) 부터는 background restriction 정책으로 이 녀석을 포함한 다른 녀석들도 static receiver 로 받을 수 없게 되었다. 그리고 결국 API 28 (POS) 부터는 deprecated 된 것이다. deprecated 가 되었기 때문에 사실 target.. 2019. 4. 9. [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 다음