My app is using device's menu option for navigate to other pages. Problem which I see now, with latest Nexus 7, there is no hardware menu option is available so I put a button to menu for user access. But now problem is I'm unable to determine that on which devices, menu option is already available so it's showing two menus 1. My button 2. Device's supported menu option. I would like show only one, could any one help me on it?
Asked
Active
Viewed 43 times
2 Answers
0
Menu option is available from (Android 3.0)api 11 and above. You don't need to use your own button for that check this developer link.
If you want show on ur own button remove onCreateOptionsMenu(Menu menu)
method and use openOptionsMenu()
and call it onClick of ur button.

W I Z A R D
- 1,224
- 3
- 17
- 44
-
No it's not true, menu option for is not present in Nexus 7, it's working on all other devices, but in nexus 7, no menu options is there. – Pankaj Dec 03 '14 at 07:49
0
Try:
ViewConfiguration.get(context).hasPermanentMenuKey()

NoDataDumpNoContribution
- 10,591
- 9
- 64
- 104

Pankaj
- 833
- 12
- 35