title: How to do a query in Android using Parse?
body: <p>My Class in parse is called "MyClass" and this one has several objects like</p>
  
  <pre><code>| ObjectId | Names | owners | users | (owners is a pointer of another class)
  </code></pre>
  
  <p>I want to do a query that gives me all of the names in my object "Names" that belong to the owner but, when I do this query i get this:</p>
  
  <pre><code>com.parse.ParseObject@41828fe0
  com.parse.ParseObject@41829fdd
  com.parse.ParseObject@4182aa28
  </code></pre>
  
  <p>my code is this</p>
  
  <pre><code>final ParseQuery query = new ParseQuery("MyClass");
  query.whereEqualTo("owners", ParseUser.getCurrentUser());
  query.findInBackground(new FindCallback() {
      public void done( List&lt;ParseObject&gt; MyList, ParseException e) {
  
          if (e == null) {
  
              adapter = new ArrayAdapter&lt;ParseObject&gt;(MyActivity.this, android.R.layout.simple_list_item_1, MyList);
              listDev.setAdapter(adapter);
  
          }else{
              //error
          }
  </code></pre>
  
  <p>please help me how to do that query that gives me all of name that belong to the owner.</p>
  
  <p><strong>EDIT</strong>
  I found a solution and is something like this.</p>
  
  <pre><code>ParseQuery&lt;ParseObject&gt; query = ParseQuery.getQuery("MyClass");
          ParseUser user = ParseUser.getCurrentUser();
          query.whereEqualTo("owners", user);
          query.findInBackground(new FindCallback&lt;ParseObject&gt;() {
              @Override
              public void done(List&lt;ParseObject&gt; objects, com.parse.ParseException e) {
                  if (e == null) {
                      for (ParseObject parseObject : objects){
                          String task;
                          task= parseObject.get("owners").toString();
                          adapter.add(task);
                          adapter.notifyDataSetChanged();
                      }
                  } else {
                      // Something went wrong.
                      Toast.makeText(getActivity(),"Error: " + e.getMessage().toString(),Toast.LENGTH_SHORT).show();
                  }
              }
          });
  </code></pre>