Android Question PTT Button event

Nizze

Active Member
Licensed User
Longtime User
Hi

Im having a hard time to finf button event .

B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean

    Log("Keycode : " &KeyCode)

End Sub

I get Keycode : 0
And it repeats if i hold the button down .

How can i log the event in another way ?

Br

Nizze
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
It's more probably an intent than a button's keycode. Should you ask the manufacturer or check the unfiltered logs.
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
Hello,
It's more probably an intent than a button's keycode. Should you ask the manufacturer or check the unfiltered logs.

I will have to contact them i guess.

I have search in the logs , but i cant find anything in them .
I can se all other events and buttons ..

// Nizze
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
From that thread https://stackoverflow.com/a/40493624 I saw it's something like com.kodiak.intent.action.PTT_BUTTON or com.kyocera.android.intent.action.PTT_BUTTON, worse a try with the brand in your case. Good luck

Yes i have seen those .
But they wont help me as i cant find anything in the logfiles .
But i will try to contact the supplier and see what they will answer ...
I guess they wont tell me anything

// Nizze
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
Try these, they are industry standard, I have used them, it may vary from manufacturer to manufacturer.

android.intent.action.PTT.down
android.intent.action.PTT.up
android.intent.action.CHANNELUP.down
android.intent.action.CHANNELDOWN.down
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
You can also look at the unfiltered logs while pressing the button. Does the device have a native ptt app on it?
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
Try these, they are industry standard, I have used them, it may vary from manufacturer to manufacturer.

android.intent.action.PTT.down
android.intent.action.PTT.up
android.intent.action.CHANNELUP.down
android.intent.action.CHANNELDOWN.down

I also have have :
android.intent.action.ACTION_PTT_BUTTON_DOWN
android.intent.action.ACTION_PTT_BUTTON_UP



I have checked the logs , but i cant se anythingh there .
Only time i see antyhing is in "KeyPress"
There i have Keycode = 0

So for the moment i sit tight ..

// Nizze
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…