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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Pootis Man](https://secure.gravatar.com/avatar/f2e09b1659ae1ab4b9eb717e75d9a496?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Pootis Man
286 PointsHelp! My Android app isn't working!
Hi. When I try to run my app, my picture doesn't show. And, when I press "Enlighten Me!" It doesn't do anything. I don't understand what I did wrong. Please help!
8 Answers
![Amit Bijlani](https://uploads.teamtreehouse.com/production/profile-photos/5393/micro_NewProfile2.jpg)
Amit Bijlani
Treehouse Guest TeacherHi Pootis,
You might want to post some code or zip up your project and send it to help@teamtreehouse.com so that Ben our Android teacher can look at it.
![Ben Jakuben](https://secure.gravatar.com/avatar/ed792ef7584207802b7556057724fe13?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Jakuben
Treehouse TeacherYes, please zip it up and send it along! Perhaps the image file is in the wrong place, and maybe there is a typo or something in the OnClickListener for the button. If you send your code I can hopefully find the problem quickly. Or even post some code in here and see if the members can help. :-)
![Pootis Man](https://secure.gravatar.com/avatar/f2e09b1659ae1ab4b9eb717e75d9a496?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Pootis Man
286 PointsOk , Thanks :)
![Ben Jakuben](https://secure.gravatar.com/avatar/ed792ef7584207802b7556057724fe13?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Jakuben
Treehouse TeacherGot your code and I'm replying here in case anyone else runs into these same problems. :)
First, the button isn't doing anything because an important line is missing. Maybe it was deleted during the Simple Refactoring video? Check out how the code looks around the 10 minute mark and you should see what's missing from the onClick()
method.
The Crystal Ball image is missing because file names in the "res" directory of Android projects can only have letters, numbers, or underscores. All the letters must be lowercase, too. White space and capital letters are not allowed. It looks like you renamed "crystal_ball.png" to "Crystal Ball Layout.png". Try renaming it (and updating the name in activity_main.xml) and the image should show up for you.
Hope this helps! Reply back if you need any further details.
![Pootis Man](https://secure.gravatar.com/avatar/f2e09b1659ae1ab4b9eb717e75d9a496?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Pootis Man
286 PointsThanks!
EDIT: I did what you said, but still nothing happened. I'll send it again.
![Pootis Man](https://secure.gravatar.com/avatar/f2e09b1659ae1ab4b9eb717e75d9a496?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Pootis Man
286 PointsIs it possible that the problem has something to do with the emulator rather than the code?
![Ben Jakuben](https://secure.gravatar.com/avatar/ed792ef7584207802b7556057724fe13?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Jakuben
Treehouse TeacherThere were two definite problems with the code. If those are fixed then it could possibly be a problem with the emulator, but I doubt it if the emulator works otherwise.
Problem 1: setText() missing
In your onClick() method, the line answerLabel.setText(answer) was missing after answer is set.
Problem 2: Crystal Ball Layout.png is an invalid name
You need to rename that file to crystal ball.png (no caps or whitespace) and then also change the reference to the filename in the Image View background attribute. It should be "@drawable/crystal_ball"
Verify that these are fixed correctly, and if you are still having problems, send your code again or paste it in here.
Good luck!
![Pootis Man](https://secure.gravatar.com/avatar/f2e09b1659ae1ab4b9eb717e75d9a496?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Pootis Man
286 Points:D It worked! Thank you :)