How to identify the profile used by my photo-shutter?
It is I who have to decide?
It works perfectly with the app "camera" and is not detected by any B4A code I've tried.
With this photo-shutter is not given any app.
Those shutters send a BT char. Write a small app to show. Connect the device with you phone or BT tablet.
You can wait for it. First of all register the button as a BT device
Thank you all, but ....
I paired the photo shutter the smartphone; They are able to take pictures.
But I do not find any code that listens B4A this bluetooth device.
I turn on and turn off ....
I'm waiting ....
Nothing ....
I connected it with bluetooth and i ran a app to test....
As expected check for the KeyCode pressed did the tríck as @tigrot already said.
B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean 'Return True to consume the event
Log($"Activity_KeyPress(${KeyCode})"$)
If KeyCode = 24 Then
Log("BIG Shutter Button clicked")
Return True
End If
If KeyCode = 66 Then
Log("SMALL Shutter Button clicked")
Return True
End If
End Sub