Re: [android-developers] Detecting hardware button on Android mobile
try replace this :
KEYCODE_CALL
On Fri, Aug 30, 2013 at 11:53 PM, Ash <anangia@gmail.com> wrote:
The code you have given is to detect the Power button. I want to detect the PTT (push-to-talk) button.
On Friday, 30 August 2013 23:01:01 UTC+10, baturanija1 wrote:add permission : <uses-permission android:name="android.permission.PREVENT_POWER_KEY" />On Fri, Aug 30, 2013 at 3:00 PM, Jadranko Bodiroga <jadrankobo...@gmail.com> wrote:
something like this maybe: if (event.getKeyCode() == KeyEvent.KEYCODE_POWER) {}
On Fri, Aug 30, 2013 at 1:06 PM, Ash <ana...@gmail.com> wrote:
Hi All,I have a mobile phone from Runbo (http://www.runboruggedphones.com/shop/buy-runbo-x5-ip67-rugged-waterproof-smartphone.html).It has a 3 additional buttons which I have not seen on normal Android phones. These are PTT, SOS and ET.I was able to detect the SOS and ET button using the following functions:public void onKeyUp(...)andpublic void onKeyDown(...)The keycode values for SOS and ET were very high in the range. ET was set to 300 and SOS was 301. But that does not matter as long as I can detect them.However I am not able to detect the PTT button press.Has anyone got any ideas on how to detect when the PTT button is pressed?Any advice or help will be much appreciated.ThanksAsh--To post to this group, send email to android-d...@googlegroups.com
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home