Wondering if anyone has any idea where the hardware buttons are programmed in the Android source. I’m working on 2.3.4 right now and I would like to be able to replace the “Settings” button shortcut that shows up when the left-most hardware key is pressed. I’ve tried googling for a few hours now with no luck… Any info as to where within source this can be modified would be greatly appreciated!
Wondering if anyone has any idea where the hardware buttons are programmed in the
Share
I’m not entirely sure if this is what you are looking for, but the menu that pops up on the device’s home screen is created by the
onCreateOptionsMenu()method inside the Launcher activity of the Launcher2 application.Here is a link to the source for the version used in 2.3.4. If you are developing a custom launcher application, this is the method that would get triggered when your activity is running and the MENU button is pressed.