Anand
Anand

Reputation: 1325

how to hide menu in default Contact Screen in Android?

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

Answers (1)

Rishabh
Rishabh

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

Related Questions