Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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