hey
someone know how can i catching the KEYCODE_ENDCALL and KEYCODE_HOME
event ?

i try to override the 'onKeyDown' method of activity like the next
code , but i cant catch the events

@Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_ENDCALL || keyCode ==
KeyEvent.KEYCODE_HOME) {
                Log.d("ATS", "" + keyCode);
        }
        return true;
}

Thanks !
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to