When creating an Android app using PhoneGap Build, how can I prevent the system from adding the menu button at the bottom of the screen?
From Disabling menu button in Android using PhoneGap, I got that when using pure PhoneGap, the solution appears to be to comment out the onCreateOptionsMenu
function in MainActivity.java
. However, when using PhoneGap Build, I obviously do not have access to any java files.
So what is the solution for PhoneGap Build?
http://android-developers.blogspot.co.uk/2012/01/say-goodbye-to-menu-button.html mentions one solution that works for me:
...to ensure that the overflow action button never appears beside the system navigation, you should set the targetSdkVersion to 14.
Note also that:
...you can leave minSdkVersion at something much lower to continue supporting older devices.
The above can be set in the config.xml.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With