title: Android Parse finding a result using a Pointer Id
body: <p>I'm trying to get a query using as condition the Pointer Id of the object, for example I'm saving all the id's of an object in an array, then I want to get from another class (related by pointer), all the objects that uses that Id, so I already have this:</p>
  
  <pre><code>for (i = 0; i &lt; num; i++) {
       //restaurant.setObjectId(restId[i]);
  
          ParseQuery&lt;ParseObject&gt; resultsitems = ParseQuery.getQuery("Item").whereEqualTo ("restaurant", restId[i]);
  
          try {
              objects=resultsitems.find();
          } catch (ParseException e) {
              e.printStackTrace();
          }
  
         (.......)
  }
  </code></pre>
  
  <p>In my first try I tried to set the id into the restaurant object, then tried to use the query as:</p>
  
  <pre><code>ParseQuery&lt;ParseObject&gt; resultsitems = ParseQuery.getQuery("Item").whereEqualTo ("restaurant",restaurant );
  </code></pre>
  
  <p>But it didn't work, then I tried to search as shown in the code above, it doesn't crash but brings me nothing, how can I do this? </p>