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

Android

Activity Bar not showing on RecipientsActivity. "Build a Self-Destructing Message Android App project" task 6 part 2

Hi all. I'm at a loss trying to show the activity bar on a new activity.

The activity bar shows fine on the main activity so I tried duplicating the menu_main.xml into the menu_recipients.xml file which didn't work (also tried changing the context to the new activity which didn't work).

The onCreateOptionsMenu functions are the same between the main activity and the new activity and the there is no theme set for the new activity in the manifest. Any help would be fantastic!

AFAIK the menu.xml files are just for setting the options menu. A new one is usually created for each activity. These dont really have anything to do with setting an Activity Bar/Toolbar. What theme do you have set in your styles.xml file?