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