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 Retrieving and Viewing Messages Retrieving Messages

Now we can execute the query in the background. Call the correct method to do so, and for the parameter, declare a new F

where am i getting it wrong..help please

MainActivity.java
import android.app.Activity;
import android.os.Bundle;
import com.parse.ParseQuery;
import com.parse.ParseObject;
import com.parse.FindCallback;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        /* Add code below! */
      ParseQuery<ParseObject> query = new ParseQuery("DoctorWhoEpisodes");
      query.whereEqualTo("writer", "Neil Gaiman");
      query.findInBackground(new FindCallback<ParseObject>(){});
}

1 Answer

Daniel Hartin
Daniel Hartin
18,106 Points

Hi

Your code is spot on! I think you're just missing a closing curly brace for your class/method. I've tried your code and it went straight through (obviously after adding in the extra curly brace) , good job!

Daniel