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 Build a Simple Android App (retired 2014) Pretty Little Things Animating the Crystal Ball

jumpAnimation.isRunning

I cant get my code to work and I dont understand why. HELP!

1 Answer

Hi Jack, generally it's a good idea to post what code you've already written so we can see what you might be doing wrong.

If you've put what's in the title of the post as the condition of the if statement, then you have forgotten something quite key! The isRunning is a method of the jumpAnimation. It takes no arguments but it's still a method and so needs parenthesis after it.

So the condition of the if statement should look like below:

jumpAnimation.isRunning()