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

Crystal Ball - Ben Jakuben

Ben Jakuben,

I am very much enjoying the Crystal Ball Project in your class. I have a question. When I loaded the app to my cell phone for testing, (which went as easily as you described), I noticed something that I consider to be odd. When the app first loads there is no direction for the user to follow. The displayed image just says “Crystal Ball”. Would it not be better to start with a displayed image that includes “Shake for Prediction”. That would give the user some direction? If I wanted to make it work that way, could I not just change the order of the images in the bal_animation.xml file? Or am I getting ahead of myself.

4 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

You bet! It sounds like you're missing one of the files, though. So we start out with an image that doesn't say anything in the Adding an Image video. That's because we put a button on the bottom.

Later in that stage, in the Animating the Crystal Ball video, we download new images for the animation that include a new version of ball01.png. This version includes the text "Shake for Prediction". The link is available in the teacher notes on that video, but here it is as well: Crystal Ball Animation Files

Now if you have the correct image but it's not showing up on your phone, then you might need to delete the version on your phone and reinstall it. Sometimes assets like images, sounds, or videos get cached in a way that doesn't always get updated when we reload the project from Eclipse.

Hope this helps!

Ben, Thanks for your help I went to the class session again and downloaded the “android-island1-stage5-video3.zip” file again. In that file the “ball01.png” file is not as needed. I went to the link that you sent me above (Crystal Ball Animation Files) which had the correct “ball01.png” file. I added the new file to my project, which now works fine. Again thanks for your help. Isn’t programing fun. Loving you guys.

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Thanks! And good catch! I just updated the project files. Elizabeth Fawkes, can you award Lon the badge for catching a bug? :smile:

Is the web site having trouble today. Class interrupted?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Heh - unfortunately, yes! There was an issue with our CDN (Content Delivery Network) regarding stylesheets. The @treehouse Twitter handle sends updates about known issues like this, so you can check and tweet at that feed if you're ever curious. It appears to be resolved now.

Hellooo teammates, Lon Sanders & Ben Jakuben! :) I've awarded you the Exterminator Badge for your help squashing this bug. Don't hesitate to shoot me an email if you have any questions or need anything!

Best,

Elizabeth

Thank you kind lady.

Thanks, back in business again.