I'm not sure however I'll try to help you. With ABS, I answered on a "same" behaviour and it worked well. Then, with AppCompat
, you have to call super
method after all your stuff as follows:
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
if(DEBUG) Log.v("Debug", "This method doesn't get called on a device");
... // I thought this "..." was your stuff, so do it here
super.onCreateOptionsMenu(menu, inflater);
}
You have a great explaination and example on this answer. You should also check your imports
. However it's maybe related to your device and not with the way you do it (not sure, because on 4.2.2 with ABS, it worked well).