[email protected] wrote:
> @Override
> public boolean onCreateOptionsMenu(Menu menu)
> {
> super.onCreateOptionsMenu(menu);
> MenuItem item = menu.add(0,1,0, "Set Fav Dir");
> MenuItem item = menu.add(0,2,0,"Change Layout");
> return true;
> }
Try:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(0,1,0, "Set Fav Dir");
menu.add(0,2,0,"Change Layout");
return(super.onCreateOptionsMenu(menu);
}
and see if that helps.
Or, define your menus in XML and use MenuInflater.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Development Wiki: http://wiki.andmob.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---