Levisvv Member Licensed User Longtime User Feb 18, 2016 #1 I want to check if a headset is plugged in. and take action on this state (an msgbox or som other action). Erel said it is possible with BroadCastReceiver he showed this example See the example here: http://www.b4x.com/forum/addit...html#post70351 The action you should add is: "android.intent.action.HEADSET_PLUG" But i don't know how to do this. I want to know when a headset is plugged in or out seperaty. is this possible?
I want to check if a headset is plugged in. and take action on this state (an msgbox or som other action). Erel said it is possible with BroadCastReceiver he showed this example See the example here: http://www.b4x.com/forum/addit...html#post70351 The action you should add is: "android.intent.action.HEADSET_PLUG" But i don't know how to do this. I want to know when a headset is plugged in or out seperaty. is this possible?
Erel B4X founder Staff member Licensed User Longtime User Feb 18, 2016 #2 The link you posted is broken. This tutorial explains how to add an intent filter: https://www.b4x.com/android/forum/t...sms-messages-in-the-background.20103/#content Upvote 0
The link you posted is broken. This tutorial explains how to add an intent filter: https://www.b4x.com/android/forum/t...sms-messages-in-the-background.20103/#content