7 Mar 2012

Physical back key of device in Android


public boolean onKeyDown(int keyCode, KeyEvent event)
       {
              if ((keyCode == KeyEvent.KEYCODE_BACK))
              {
                     keyCode=KeyEvent.KEYCODE_1;
                     //code here....
              }
              return super.onKeyDown(keyCode, event);
       }


I will be happy if you will provide your feedback or follow this blog. Any suggestion and help will be appreciated.
Thank you :)

No comments:

Post a Comment