Hi Mike, If you could go through the Tutorial Exercise 2nd, you will find that there are two functions that Android has provided for managing items in the Menu Control as following:
1. onCreateOptionsMenu(): You can create your items in Menu. 2. onMenuItemSelected(): What action needs to be taken when a particular menu item is selected? This function gets an Item parameter so when you will call item.getID(), it will return a particular menu item selected by the user and you can handle that accordingly. I hope that this answers to your question. Regards, Ashok On Tue, Jun 24, 2008 at 9:05 PM, MBraude <[EMAIL PROTECTED]> wrote: > > Hi Everybody, > > I'm sure this is an easy thing to do, but I haven't run into an > example yet that responds to the user clicking the Menu button on the > phone. I'd like to be able to show / hide some things based on this > click event. What's the easiest way to do this? > > Thanks very much, > Mike > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

