Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Nina Yousefi
2,911 PointsListActivity deprecated
Hello, I have a problem ..in Ribbit project, for RecipientsActivity I extend ListActivity instead of ActionBarActivity, since I'm going to have the list of friends there..But I have a sendMenuItem that is not showing(in fact I see no menu bar at all!)..I guess because it s not extending ActionBarActivity..I don't know what to do..Please help....:( Neena
2 Answers
Wesley Seago
10,424 PointsListActivity is not deprecated. Please post your code for RecipientsActivity.java. The developer docs will explain how to setup the options menu in code here:
http://developer.android.com/guide/topics/ui/menus.html
Make sure you are implemented the onCreateOptionsMenu method, and the onOptionsItemSelected method.
Nina Yousefi
2,911 PointsHi Wesley, Thank you for your answer. Yes, I have implemented these methods..I did the Ribbit project exactly as Ben, but the problem is that by extending ListActivity, I have no menus. I need "List" and "menu" both in this activity.. Can anyone help?..