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 trialRoberto Díaz
1,802 PointsStuck in the third step
Hi.
I'm stuck in the third step and I can't go on.
What would be the correct code?
Thank you!
2 Answers
Andrew West
3,245 PointsI'm not exactly sure where you're stuck, but here's my code for step 3 of the code challenge I believe you're referring to. If this doesn't answer your question please share the code you've written that isn't passing.
String[] phoneNumberLabels = { "-home", "-work", "-mobile" };
Button saveButton = (Button) findViewById(R.id.saveButton);
String label = getString(R.string.saveLabel);
saveButton.setText(label);
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="saveLabel">Save My Changes</string>
</resources>
Roberto Díaz
1,802 PointsAs stupid as it may sound, the problem is that I didn't put "label" between the brackets.
Long night of coding my friend.... hahaha
Thanks for your help (and the patience)