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 Build a Self-Destructing Message Android App Sending Messages Sending the Message

Alex Park
Alex Park
7,567 Points

How 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

Task.put("description", description);

Alex Park
Alex Park
7,567 Points

It still doesn't work...

you did :

Task,put(description, description); ^ just put a dot.

Alessandro Lazzarin
Alessandro Lazzarin
8,367 Points

mSave.put("description", description);

ParseObject.put("description", description);