something like this maybe: if (event.getKeyCode() == KeyEvent.KEYCODE_POWER
) {}
On Fri, Aug 30, 2013 at 1:06 PM, Ash <[email protected]> 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(...)
> and
> public 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.
>
> Thanks
> Ash
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.