In Android how do you register to receive headset plug broadcasts?

后端 未结 3 931
无人及你
无人及你 2020-12-10 09:10

I am working in Android 2.1, and I want to detect when the headset is plugged in/taken out. I\'m pretty new to android.

I think the way to do it is using a Broadcast

3条回答
提交回复
热议问题