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

Kevin Michie
Kevin Michie
6,554 Points

Use Empty Activity instead of Blank Activity. Less Errors and Better Rendering...so far...

Hi Everyone,

While I was working through Interactive Story, my app did not like the changes I made when I tried getting rid of the Action Bar. I had multiple errors and would be constantly asked about a widget. After scanning the internet and trying at least 15 different ways to fix this, I made a change to what project type I should use.

Instead of Blank Activity, I used Empty Activity and my pre-loaded code was almost perfectly aligned to that of the video. The exception so far being the missing styles(v.21).xml.

You still need to change your API to 21, mine was at 23, to eliminate the rendering issues.

I hope this was able to help those that were frustrated with the rendering errors and files being pre-loaded so differently than the videos.

Best Kevin