Wow...too simple! Thanks! -Mike On Sat, Apr 4, 2009 at 3:54 PM, Mark Murphy <[email protected]> wrote: > > Michael Dorin wrote: >> I have created an options menu in xml. >> >> When an item is selected and I process a selection comparing to >> item.getItemId(), how can I get the id from my xml file? >> >> I can't seem to find any examples. I am about ready to click each >> option and write the id down that comes up, but that seems >> kludgy even for me! >> >> My XML is as below. It is too select a category for my menu. >> >> When Sandwiches is pressed, how do I know which id is sandwiches? > > It will be known as R.id.sandwiches in Java. > > And quit making me hungry! > > ;-) > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android App Developer Training: http://commonsware.com/training.html > > > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

