Erel,
Anyway to identify wich device pressed key come? in ACTIVITY_KEYPRESS ?
I try identifing is keyboard is visible, but not works very well
Sub HardwareKeyboardPresent As Boolean
Dim ref As Reflector
ref.Target = ref.GetContext
ref.Target = ref.RunMethod("getResources")
ref.Target = ref.RunMethod("getConfiguration")
Dim keyboard As Int = ref.GetField("keyboard")
Return keyboard <> 1
End Sub
And for the user, the pressed key is configurable, I mean, he can press any button in a bluetooth device, I need to know if come from bluetooth device or no.
Anyway to identify wich device pressed key come? in ACTIVITY_KEYPRESS ?
I try identifing is keyboard is visible, but not works very well
Sub HardwareKeyboardPresent As Boolean
Dim ref As Reflector
ref.Target = ref.GetContext
ref.Target = ref.RunMethod("getResources")
ref.Target = ref.RunMethod("getConfiguration")
Dim keyboard As Int = ref.GetField("keyboard")
Return keyboard <> 1
End Sub
And for the user, the pressed key is configurable, I mean, he can press any button in a bluetooth device, I need to know if come from bluetooth device or no.