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 App Interactive Story Crashes after pressing Start button

App crashes after pressing the Start button, downloaded and cross checked with provided project files, didn't find any noticeable difference. Log shows some error in setContentLayout of StoryActivity. Sometimes app starts on page 0 and works fine till it reaches start page again and crashes. Name of the friend is shown as null, didn't understand why? Stuck with this for hours now.


Could you please provide the full error message as well as your code so that we can more easily assist you in resolving your bug?

Just checked on device. It is not crashing on device but when text field is empty instead of filling the name with "Friend" it is leaving the field empty(null). Error doesn't make much sense(at least to me). reports that error is in line setContentView(R.layout.activity_story); It still crashes on simulator. Project: http://1drv.ms/1M1d2TX