Hello,
I have made some tests trying to detect a press on the small button included on some wired headsets.
When the activity is not paused, I get the activity keypress with value 79 each time. But when trying to detect it from a service using the code below, the service never starts. I am sorry as I am not still understanding the intent process so perhaps my code is not for this button ?
Many thanks
I have made some tests trying to detect a press on the small button included on some wired headsets.
When the activity is not paused, I get the activity keypress with value 79 each time. But when trying to detect it from a service using the code below, the service never starts. I am sorry as I am not still understanding the intent process so perhaps my code is not for this button ?
B4X:
AddReceiverText(MyService, <intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>)
Many thanks