title: The document are displayed in a separate layouts instead of displaying in a one layout?
body: <p>I'm doing an Android application, when i use the intent, I don't get all documents from the subcollection.</p>
  
  <p>Every collection has a document and a subcollection, so I created a listener on every clicked item, so when the user click the item it should show all the document inside the subcollection, and the code should do the same task, but I don't know why it shows just one document from the subcollection, i searched to see if there are another ways of passing data, but I see that intent is the best.</p>
  
  <pre><code>adapter.setOnItemClickListener(new MarketAdapterRecyclerView.OnItemClickListener() {
              @Override
              public void onItemClick(DocumentSnapshot documentSnapshot, int position) {
  
  
                  CollectionReference path = documentSnapshot.getReference().collection("ShoppingItems");
  
                  path.addSnapshotListener(new EventListener&lt;QuerySnapshot&gt;() {
                      @Override
                      public void onEvent(@Nullable QuerySnapshot queryDocumentSnapshots, @Nullable FirebaseFirestoreException e) {
  
                          if (e != null) {
                              return;
                          }
  
                          for (DocumentChange dc : queryDocumentSnapshots.getDocumentChanges()) {
  
                              if (dc.getType() == DocumentChange.Type.ADDED) {
  
                                  Item item = dc.getDocument().toObject(Item.class);
                                  Intent intent = new Intent (shoppingActivity.this, ItemMarkerActivity.class);
                                  intent.putExtra("keyName", item);
                                  startActivity(intent);
  
  
                              }
  
                          }
  
                      }
                  });
  
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZCjSX.png" rel="nofollow noreferrer">Here's the another activity that receives the intent</a></p>
  
  <p><a href="https://i.stack.imgur.com/k45Oq.png" rel="nofollow noreferrer">Here's database structure</a></p>
  
  <p><a href="https://i.stack.imgur.com/Y9B32.png" rel="nofollow noreferrer">Here's the manifest</a></p>