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 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