title: How to add functions to menu associated with the hardware menu button?
body: <p>I am making an app for android. When the user clicks on the device's hardware menu button, I want to open a custom popup menu which has options pertaining to my activity. According to android documentation, only context menu and options menu can be made, and there is no way to access the hardware menu button's functions. How to do this?</p>