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 Starting the App Adding the Login Screen

Wilson Liu
Wilson Liu
5,877 Points

setNavigationMode deprecated in API 21

Hi, I am using android studio and API 21 to follow this course. I found some navigation is deprecated. Should I make a fix or ignore them? Thanks.

final ActionBar actionBar = getSupportActionBar(); //It shows deprecated!! actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

1 Answer

This is part of a larger issue this this app/class. Yes you can just continue and ignore, but I would recommend changing your support library in cradle to v4 19.1.+

This will mean changing theme to holo instead of appCompat and a few other imports but it will help you follow the class in the long run.

Joseph Ambrose, can you give an example ?