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

Sushant Bindra
Sushant Bindra
625 Points

String Resources

I'm getting a yellow error in the following line, it says i should use string resource instead of hard coding the sting. android:text="Did you know?" /> Help me please !

1 Answer

That is not an error (red), it is a warning (yellow). Ideally you do not have any words or sentences typed into a java class, and instead you reference t from strings.xml.

For now, just ignore it and continue coding, it will not effect any program you are writing from running.