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

Prasanjit Ram
Prasanjit Ram
314 Points

getString()used but error

i have getString() but again seeing the same error.

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

</resources>