Nizze Active Member Licensed User Longtime User Mar 28, 2019 #1 Hi Im having a hard time to finf button event . Code: 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
Hi Im having a hard time to finf button event . Code: 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 Mar 28, 2019 #2 Hello, It's more probably an intent than a button's keycode. Should you ask the manufacturer or check the unfiltered logs. Upvote 0
Hello, It's more probably an intent than a button's keycode. Should you ask the manufacturer or check the unfiltered logs.
Nizze Active Member Licensed User Longtime User Mar 28, 2019 #3 lemonisdead said: Hello, It's more probably an intent than a button's keycode. Should you ask the manufacturer or check the unfiltered logs. Click to expand... 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
lemonisdead said: Hello, It's more probably an intent than a button's keycode. Should you ask the manufacturer or check the unfiltered logs. Click to expand... 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
lemonisdead Well-Known Member Licensed User Longtime User Mar 28, 2019 #4 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 Upvote 0
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
Nizze Active Member Licensed User Longtime User Mar 28, 2019 #5 lemonisdead said: 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 Click to expand... 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
lemonisdead said: 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 Click to expand... 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
Jmu5667 Well-Known Member Licensed User Longtime User Mar 28, 2019 #6 what type device is it ? Upvote 0
Jmu5667 Well-Known Member Licensed User Longtime User Mar 28, 2019 #7 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
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
Jmu5667 Well-Known Member Licensed User Longtime User Mar 28, 2019 #8 One of our engineers uses this https://play.google.com/store/apps/details?id=com.rs.autorun to list all the intents that apps use, you may find it useful. Upvote 0
One of our engineers uses this https://play.google.com/store/apps/details?id=com.rs.autorun to list all the intents that apps use, you may find it useful.
Jmu5667 Well-Known Member Licensed User Longtime User Mar 28, 2019 #9 You can also look at the unfiltered logs while pressing the button. Does the device have a native ptt app on it? Upvote 0
You can also look at the unfiltered logs while pressing the button. Does the device have a native ptt app on it?
Nizze Active Member Licensed User Longtime User Mar 28, 2019 #10 Jmu5667 said: 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 Click to expand... 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
Jmu5667 said: 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 Click to expand... 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
Jmu5667 Well-Known Member Licensed User Longtime User Mar 28, 2019 #11 What type of device is it ? Upvote 0