I created an app that supports both phone and tablet version so i use the android-support-v4.jar library.
My activity extends the ListFragment and I tried to overri
Had the same problem, but it was because I used the wrong onCreateOptionsMenu method in my Fragment!
boolean onCreateOptionsMenu(Menu menu) is only for Activities.
@Override //For Activities
public boolean onCreateOptionsMenu(Menu menu) {
...
Had to move it to the activity class containing the Fragment.
Fragment have their own: void onCreateOptionsMenu (Menu menu, MenuInflater inflater)
@Override //For Fragments.
public void onCreateOptionsMenu (Menu menu, MenuInflater inflater){
...
Creating an Options Menu: http://developer.android.com/guide/topics/ui/menus.html