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 trialAlex Park
7,567 PointsHow to put the description string in the ParseObject using the key "description".
public void save() { ParseObject Task = new ParseObject("Task"); String description = mDescriptionField.getText().toString(); Task,put(description, description);
}
What's wrong with this part? Isn't is parseobject name . put (key, value) ; ?
4 Answers
Dominic Penfold
8,194 PointsTask.put("description", description);
André Sanna Taylor
2,612 Pointsyou did :
Task,put(description, description); ^ just put a dot.
Alessandro Lazzarin
8,367 PointsmSave.put("description", description);
Ginger Ranslam
8,156 PointsParseObject.put("description", description);
Alex Park
7,567 PointsAlex Park
7,567 PointsIt still doesn't work...