Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Self-Destructing Message Android App Adding Users Using Parse.com Logging Out

No Overflow (Logout) shown in actionbar after changes. action.setNavigationMode has a strikethrough in my code.

After completing the steps in this video, I still do not see the Overflow menu and the Logout option in the actionbar.

I am using android studio, and I have a strikethrough in the following line of code:


Not sure if this is related to the actionbar item showing up? When I hover over the strikethrough, it says these methods have been deprecated and that a NullPointerException may be created.

Any help would be appreciated, thanks!

I was able to get past my issue. Seemed to be a number of things, that I had to change to get it to work for me.

For one, the action bar overflow menu never did appear when I was emulating on the Samsung Galaxy S4, API 19. However, I did find my "logout" menu option on the main menu button for this phone. I switched to using the Moto X, API 19 and it now appears in the action bar, as desired.

1 Answer

Jordan Ernst
Jordan Ernst
5,121 Points

i have no answer to this but i have the same error in my coding. can you upload your source code for a guide please