I am stuck changing some properties in the options menu in onCreateOptionsMenu() . FindItem () seems to return null, although I'm sure the menu item reference is correct. My code is as follows:
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_profile, menu); MenuItem leftie = menu.findItem(R.id.menu_profile); leftie.setIcon(R.drawable.ic_menu_mapmode); leftie.setTitle(R.string.back_map); leftie.setIntent(authIntent); return true; }
I really don't know what could be there. Thanks in advance:)
EDIT: I forgot to include the real issue.
source share