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

"No data" after pressing the "Test" button

I did everything I had to in Parse, but when I ran the app and pressed "Test" button like I was supposed to. Parse showed me that there is no data yet

this is my RibbitApplication tab looks like:

public class RibbitApplication extends Application {

    @Override
    public void onCreate() {

        super.onCreate();

        Parse.initialize(this, "G6LGn0ZDNEo5VtY2bxrHerQJD98DJRg8EoiYxw6K", "pEyyogvTojjocue8Ljsq1gO5ZbhdiC85Qv1");

        ParseObject testObject = new ParseObject("TestObject");
        testObject.put("foo", "bar");
        testObject.saveInBackground();
    }
}

1 Answer

Try reversing two of your lines and using the object reference.

ParseObject testObject = new ParseObject("TestObject");

testObject.initialize(this, "G6LGn0ZDNEo5VtY2bxrHerQJD98DJRg8EoiYxw6K", "pEyyogvTojjocue8Ljsq1gO5ZbhdiC85Qv1");

I still didn't get any data back!