i'm trying to use BroadcastReceiver to register a long press of headset button
I've write this code in the Service_Start
but it doesn't works when clicked (long press) headset button
starts always google search (Google Now)
How to make it work?
Alberto
I've write this code in the Service_Start
B4X:
Sub Service_Start (StartingIntent AsIntent)
Broadcast.addAction("android.intent.action.MEDIA_BUTTON")
Broadcast.SetPriority(999)
Broadcast.registerReceiver("")End Sub
but it doesn't works when clicked (long press) headset button
starts always google search (Google Now)
How to make it work?
Alberto