title: How to get firestore document list in real time android
body: <p>i want to get the firebase document list in real time when a change occur for android 
  here is my code</p>
  
  <pre><code>firestore.collection("Players").orderBy("deptName").get().addOnCompleteListener(new OnCompleteListener&lt;QuerySnapshot&gt;() {
      @Override
      public void onComplete(@NonNull Task&lt;QuerySnapshot&gt; task) {
          if (task.isSuccessful()) {
  
              for (QueryDocumentSnapshot document : task.getResult()) {
  
                      documentList.add(document.getId());
  
              }
  </code></pre>