Android Build an Interactive Story App Intents and Multiple Activities Using String Resources

Pablo Ocampo solis
Pablo Ocampo solis
748 Points

help! Bummer! Type the value for the 'morePuppies' string exactly as specified in the instructions.

why it says that?

CodeChallenge.java
Button loadPuppiesButton = (Button) findViewById(R.id.puppiesButton);
 Resources resources=getResources();
String morePuppies=resources.getString(R.string.morePuppies);
loadPuppiesButton.setText(morePuppies);
strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="morePuppies">"See More Puppies"</string>
</resources>

1 Answer

Steve Hunter
MOD
Steve Hunter
Treehouse Moderator 57,557 Points

Hi there,

You are defining a string within the angle brackets. You don't need to include the inverted commas too:

<string name="morePuppies">See More Puppies</string>

That should do it!

Steve.