In the above figure i want to listen for down arrow( i have mar
In your activity, override this method: http://developer.android.com/reference/android/app/Activity.html#onBackPressed()
If I am not you talking about this method
public boolean onKeyDown(int keyCode, KeyEvent event) {
super.onKeyDown(keyCode, event);
switch(keyCode)
{
case KeyEvent.KEYCODE_BACK:
Toast.makeText(KeyActions.this, "Pressed Back Button", Toast.LENGTH_SHORT).show();
return true;
}
return false;
}