Sylvester Steele wrote:
> My app has different classes. How do I use menus in all of those?

For the classes that are activities, simply implement 
onCreateOptionsMenu() in each.

If you want them to have the same menu structure, perhaps you can set up 
your own base activity class with a common onCreateOptionsMenu() 
implementation. Or, have onCreateOptionsMenu() in each activity delegate 
to some separate class you create for building your options menus.

And if none of that answered your question, write back with more details!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch in September! http://www.bignerdranch.com

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to