How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets which does't have menu button. ?
I am running application as <uses-sdk android:minSdkVersion="5"/>
in Manifest, code is compiled with 4.0
. Three-dot indicator shows on every screen.
Example for preference activities i don't want show Three-dot indicator, since it does't have any menu options.
Adding android:targetSdkVersion="14"
in manifest it works. However don't want hide/remove three dots button on all screens . Only in preference activities don't want to show this three dots button.
This is how I find a solution of mine. It maybe helpful.
I just used
Where R.menu.main is only an empty menu xml
You can actually change the Android targetVersion thus forcing the 3-dot menu to either hide or show. You need to override onCreate of your Activity like this :
Tested on Android 4.x.x and Android 3.0
I just deleted the method :
then that three-dot-menu goes away (:
Hope it helps.