True. But I read that Activity_Keypress could read the Headphone button.
I don't need to know if it is plugged. Just read the button, will assume it plugged.
Tried to use BroadcastReceiver, with no success.
Also a Reflector, but I don't know what target to use:
in Globals:
Dim r As Reflector
in Activity_Create:
r.Target=Activity 'with Activity, it does not work. What target to use?
r.SetOnKeyListener("Key_input")
and the Sub
Sub Key_input(ViewTag As Object, KeyCode As Int, KeyEvent As Object) As Boolean
ToastMessageShow(KeyCode,False)
Return True
End Sub
Or with Reflector (that seemed simple) it's impossible?
Thank you, NJ Dude!