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

Tanisorn Norasing
Tanisorn Norasing
6,114 Points

what i miss?

here 's the code

      ParseQuery query = new ParseQuery("DoctorWhoEpisodes");
      query.whereEqualTo("writer", "Neil Gaiman");
      query.findInBackground(new FindCallback<ParseObject>() {

      });

6 Answers

As long as I see this code, it lacks<ParseObject> both after the firstParseQuery and the second ParseQuery

Hello Hiroki , I try your solution but its the same

      ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("DoctorWhoEpisodes");
      query.whereEqualTo("writer", "Neil Gaiman");
      query.findInBackground(new FindCallback<ParseObject>() {

      });

I get the same error : ./MainActivity.java:19: reached end of file while parsing }); ^ 1 error

That message means that somthing is missing in the whole code, probably the last closing brace and the code is not properly processed because it couldn't close the braces. Could you paste whole code if you don't mind?

If it's in the Code Challenge, there must be prepared a FindCallback for you, since if there wasn't, you have got to write some extra code of Callback.

What I'm trying to say is that you can use Callback that is already prepared in the CodeChallenge instead of new FindCallback

Tanisorn Norasing
Tanisorn Norasing
6,114 Points

thx for ur guidance.It's in CodeChallenge.

still error.

Note: ./MainActivity.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.

Got it . You don't cast both ParseQuery in the first line. Maybe it only gives caution so you could pass without them at that time, but now it's getting a problem.

I´m also stuck here ... Do you find the solution ?

That message means that somthing is missing in the whole code, probably the last closing brace and the code is not properly processed because it couldn't close the braces. Could you paste whole code if you don't mind?

No ! it was a bug !! , you were right Hiroki ! Ok , I reload my code challenge and started again , I paste the same code from above for the 3 questions and all perfect now . Thanks !