title: Android Parse - Pininbackground not working
body: <p>I am implementing group chat using Parse in my Android Application . and the scene is , when sender sends any message to group , i am pinning this message with a label in parse local data store at sender side. and i also put auto refreshing method, which retrieving data from parse local data store every second. but the problem is when i am calling pinInBackground method , data is not being populating in ListView using adapter. but when i call saveInBackground and pinInBackground method  together then it is being populating.</p>
  
  <p>I check that size of data is also increasing in localdatastore. but not reflecting in ListView.</p>
  
  <p>I am using following method for retrieving data from localdatastore -</p>
  
  <pre><code>    private ArrayList&lt;ParseObject&gt; mMessages;
          private MyCustomAdapter1 mAdapter;
          private ListView lvChat;
           private boolean mFirstLoad;
  
  //in onCreate() method      
          mMessages = new ArrayList&lt;ParseObject&gt;();
          lvChat.setTranscriptMode(1);
          mFirstLoad = true;
          mAdapter = new MyCustomAdapter1(getActivity(), mMessages);
          lvChat.setAdapter(mAdapter);
  
  private void receiveChatMessages() {
      ParseQuery&lt;ParseObject&gt; query = ParseQuery.getQuery("ChatMessages");
      query.orderByAscending("createdAt");
      query.fromPin("myLable");
      query.findInBackground(new FindCallback&lt;ParseObject&gt;() {
          @Override
          public void done(List&lt;ParseObject&gt; list, ParseException e) {
              if (e == null) {
                  mMessages.clear();
                  mMessages.addAll(list);
                  mAdapter.notifyDataSetChanged(); // update adapter
                  // Scroll to the bottom of the list on initial load
                  if (mFirstLoad) {
                      lvChat.setSelection(mAdapter.getCount() - 1);
                      mFirstLoad = false;
                  }
              } else {
                  Log.d("message", "Error: " + e.getMessage());
              }
          }
      });
  }
  </code></pre>
  
  <p>Question - What would be the reason that saveInBackground method is being reflecing data but pinInBackground is not?</p>
  
  <p>Thanks in advance!</p>