KeyEvent.KEYCODE_ENDCALL in Dialog

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

KeyEvent.KEYCODE_ENDCALL in Dialog

Postby andy@lg » Mon Apr 06, 2009 2:14 pm

Hi all,
Am trying to capture the KEYCODE_ENDCALL while i have a class that extends from an AlertDialog. Unforunately, I am able to capture the event of KEYCODE_BACK but KEYCODE_ENDCALL fails. the control doesnt return to onKeyDown(int keyCode, KeyEvent event) when KEYCODE_ENDCALL is pressed.

public class myclass extends AlertDialog
{
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if ( KeyEvent.KEYCODE_ENDCALL == keyCode)
{
closeThisDialog(); // control doesnt reach here...
return true;
}
return super.onKeyDown(keyCode, event);
}

}

please help me if i have to make any change..
andy@lg
Freshman
Freshman
 
Posts: 8
Joined: Thu Feb 26, 2009 8:52 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 9 guests