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 trialJay Mayu
6,805 PointsCode 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
6,805 Pointsfigured the answer myself. Seems I need to work on my English :S
query.findInBackground(new FindCallback<String>() {});
woodduck
2,733 PointsThe 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
6,805 PointsThanks for the answer woodduck.
MUZ140126 Mallon White
5,010 Pointsyou can try out the following stages: ParseQuery<String> query = new ParseQuery<String>("DoctorWhoEpisodes"); query.whereEqualTo("writer", "Neil Gaiman"); query.findInBackground(new FindCallback<String>() { }).