title: Get data from Cloud Firestore
body: <p><img src="https://i.stack.imgur.com/CIczy.png" alt="Picture"></p>
  
  <p>I need to get data from Firestore Firebase, I need to get the value of field "Company" from "employer" collection -> "TH17..." document. I try some things but it didnt work.</p>
  
  <p>How I can do this?</p>
  
  <p>I try this:</p>
  
  <pre><code>docref = db.collection("employer").document("TH17...");
          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.exists()) {
                          String p= document.getData().toString();
                          Log.d("TAG", "DocumentSnapshot data: " + document.getData());
                      } 
                  }
              }
          });
  </code></pre>