You create your menu items inside the following method...
 onCreateOptionsMenu(Menu menu)

you have to get a handle on Menu , by declaring a class variable and
assigning menu to that variable.

.....Activity{
private Menu myMenuHandle;

onCreateOptionsMenu(Menu menu)
{
       myMenuHandle = menu;
}
}
// now use your menu handle anywhere you like. not sure why you would
need in onCreate though ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to