MarQuel Middleton wrote: > Im trying to set my application menus up and i cant seem to do it can > someone help me out i would really appreciate it im real confused!!
Here is a link to the menu documentation: http://developer.android.com/guide/topics/ui/menus.html There are many samples available. http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/MenuInflateFromXml.html This example shows menu inflation, where you define the menu via an XML file. There are many other samples showing onOptionsItemSelected() in your SDK (platforms/android-1.5/samples wherever your SDK was installed). http://www.androidguys.com/2008/09/29/whats-your-preference-part-one/ This example is really of how to use the preference system, but the sample code shows onOptionsItemSelected() as well. Here are two more samples: http://www.androidsnippets.org/snippets/40/ http://www.androidsnippets.org/snippets/31/ Beyond that, you can search Google for onOptionsItemSelected(). Or, you can pick up a good book or three: http://wiki.andmob.org/books > I > just want to be able to press my exit button and it close the app or > something of that nature. You do not need a menu for that. The user can click the BACK button to exit your activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

