I have to show a popup window on click of home screen button. I have tried using the below code onkeydown()
, but on click of home key button it's not coming into the loop.
if(keyCode == KeyEvent.KEYCODE_HOME)
{
//do something
}
Also i tried using onUserLeaveHint()
, but no use.
If any one knows about this kindly let me know.