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 Using Fragments for Tabs Modifying Tabs from the Template

SetNavigationMode problem, Caused by: java.lang.NullPointerException

I am working with Android Studio 1.0.1 and I have a problem till here everything was going good since Ben started to make changes in MainActivity. When I run the app unfortunately stopped. I think that here is the problem: setNavigationMode(NAVIGATION_MODE_TABS); In this line Android Studio is telling that is null pointer and is deprecated also this line of code has a line in the middle. Anyone can help me?

1 Answer

Hi, I created this template for use tabs in Android Lollipop.

It is a new pattern for use "tabs".

I hope this help you.

Can you donwload this template in my github.

thanks a lot I'll try it,