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