Reputation: 1325
I want to hide menu in default contact screen when we call intent for default contact screen than menu should be hide.
Thanks,
Upvotes: 1
Views: 374
Reputation: 3852
This function can be used to manipulate what happens when a menu button is pressed this following code just adds a message in the log that the menu button is pressed...
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ( keyCode == KeyEvent.KEYCODE_MENU ) {
Log.d(TAG, "MENU pressed");
return true;
}
return super.onKeyDown(keyCode, event);
}
Upvotes: 1