title: How to fetch or get data from Cloud Firestore Firebase in android
body: <p>I am using this code:</p>
  
  <pre><code>DocumentReference docRef = db.collection("Users").document("user_01");
  docRef.get().addOnCompleteListener(new OnCompleteListener&lt;DocumentSnapshot&gt;() {
      @Override
      public void onComplete(@NonNull Task&lt;DocumentSnapshot&gt; task) {
          if (task.isSuccessful()) {
              DocumentSnapshot document = task.getResult();
              if (document != null &amp;&amp; document.exists()) {
  
              } else {
                  Log.d(TAG, "No such document");
              }
          } else {
              Log.d(TAG, "get failed with ", task.getException());
          }
      }
  });
  </code></pre>
  
  <p>But I don't know how to get. I know with the help of <code>put()</code> I able to insert data on Cloud Firestore, but I don't know how to fetch data which is placed in <code>user_01</code>.</p>