0

I have a database in Parse, I succeed to connect and receive user ID from Parse DB.

But didn't get inner field of that User ID (i.e. user ID's detail which is stored under that User ID).

2
  • FYI, Parse is going to close. Its better you first switch to other solution. They will be still operating till Jan,17. Read more at techcrunch.com/2016/01/28/… Commented Feb 5, 2016 at 6:03
  • Thanks, I know that but My client is not want to switch on any other solution. Commented Feb 5, 2016 at 8:53

1 Answer 1

1
ParseQuery<ParseUser> query = ParseUser.getQuery();
// for current user details
 // query.whereEqualTo("objectId", ParseUser.getCurrentUser().getObjectId();

           query.findInBackground(new FindCallback<ParseUser>() {
            @Override
            public void done(List<ParseUser> objects, com.parse.ParseException e) {
                if (e == null) {


                   //objects = list of all user data
                   //for getting user details 

                   for (int index = 0; index < objects.size(); index++) {


                                    String email=objects.get(index).getEmail();
                                    String username=objects.get(index).getUsername();

                                    //if you created custom field in user table i.e "details" 
                                    //String details=objects.get(index).get("details").toString());

        }


                }

            }
        });
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.