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

Jay Mayu
Jay Mayu
6,805 Points

Code challenge help with ParseQuery in Background

I'm trying to execute the following question

Now we can execute the query in the background. Call the correct method to do so, and for the parameter, declare a new FindCallback (which requires the same type parameter as query). For now just leave the body of the callback blank (i.e. just use curly braces: { }).

Frustratingly the question itself is very confusing. I'd like to finish off each quiz before moving to next lesson.

TTH, please break down the question or provide plain instructions as your web is being used by international users too.

3 Answers

Jay Mayu
Jay Mayu
6,805 Points

figured the answer myself. Seems I need to work on my English :S

query.findInBackground(new FindCallback<String>() {});

The following worked for me:

query.findInBackground(new FindCallback<ParseObject>() {} );

I was stuck too for a long time but in my case it was because I typed FindCallBack instead of FindCallback.

Jay Mayu
Jay Mayu
6,805 Points

Thanks for the answer woodduck.

you can try out the following stages: ParseQuery<String> query = new ParseQuery<String>("DoctorWhoEpisodes"); query.whereEqualTo("writer", "Neil Gaiman"); query.findInBackground(new FindCallback<String>() { }).