title: How to get all child object in spinner with Firebase Android
body: <p><a href="https://i.stack.imgur.com/tIDiM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tIDiM.png" alt="enter image description here"></a></p>
  
  <p>Please check the above image, 
  I want to get "Basit" and "Kashif" in spinner from Firebase in Android</p>
  
  <pre><code>mdatabase.child("Orders/Particulars").addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              for (DataSnapshot areaSnapshot: dataSnapshot.getChildren()) {
                  String Particulars = areaSnapshot.child("Basit").getValue(String.class);
                  final String[] areas = {Particulars};
                  ArrayAdapter&lt;String&gt; areasAdapter = new ArrayAdapter&lt;String&gt;(OrderActivity.this, android.R.layout.simple_spinner_item, areas);
                  areasAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
                  particular.setAdapter(areasAdapter);
              }
          }
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
  </code></pre>