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

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.

Hello,

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