Use the following code:
ViewConfiguration.get(context).hasPermanentMenuKey();
First set the build target to API level 14 or UP , which will stop Eclipse from getting any error when using the above code.
API
1., API: 10
.
2., API: 11 13 (HoneyComb)
HW MENU, .
3., API: 14
API 14 , hasPermanentMenuKey().
, .