Android action bar - disable options menu
4 answers
In the java class containing the code for the application you are developing, all you have to do is remove the following method:
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
inflater.inflate(R.menu.main, menu);
}
This is automatically created in your default project. This is why you need to remove it.
Hope it helps :)
+2
source to share