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

Android activity class does not see custom class i created.

I created a class with one method to calculate a score. But when i try to create an instance of this class the Activity.class I am in, says there is no such class.

1 Answer

Hey Edward!

What is the visibility of the class you have created? Is it public, protected, no modifier or private?

Anything no modifier or higher (protected or public are higher) should be fine for visibility so, let me know if this isn't the case for you.

Hope it helps :)