Google documentation says menu is replaced by ActionBar in 3.0 and the menu will become ActionBar itself. So I started the emulator of 3.0 and 4.0 but menu still appears as menu. Am I missing something ?
Edit :
I’m using minSdkVersion 4, so will it problem in 3.0 or higher devices ?
You need to build your application using the API level 15 or higher. To do so, in your manifest, use the following :
The minSdkVersion defines the lowest API compatible with your application, on which the menu will still appear as a Menu. On Android 3.0 or higher, the menu will appear with the overflow button on the action bar.
Additionaly, you can use the following to show a MenuItem as an action :
or in xml
This code will only be executed on Honeycomb or higher.