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 trialMIK Agency
22,496 PointsSetNavigationMode 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
Luiz Carlos
15,714 PointsHi, I created this template for use tabs in Android Lollipop.
It is a new pattern for use "tabs".
I hope this help you.
MIK Agency
22,496 PointsMIK Agency
22,496 Pointsthanks a lot I'll try it,