In the above figure, I want to listen to the down arrow (I marked it in red, the key that is used to hide the keyboard). I tried to get its action through menu options, display configuration class, etc. But this is not useful. Is there a way, listeners, or any callback event to track this button. Please let me know your suggestions and thoughts. Any help in this regard is very noticeable.
Thanks inAdvance
Override this method in your work: http://developer.android.com/reference/android/app/Activity.html#onBackPressed ()
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; }