I understand that for Android 3.0 the menus will become action bars.
But, in my program the menu that's displayed is based upon what variable is set/what the program is doing. I.E. I expect users to request the menu, and the menu that's shown is based upon the value of "menuselect". If the actions bar is automatically created, how will users get to select which menu is shown?
How would this kind of menu be processed/shown:
public boolean onCreateOptionsMenu(Menu menu) {
if (menuselect == 1)
{
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
}
else {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu2, menu);
return true;
}
}
Thanks,