title: Show list of data on my firebase database
body: <p>Hello I'm trying to show the data's that i have inputted in my <code>activity</code>, but the problem is i don't have any idea how to, I'm at lost on the data snapshot one. I'm trying to like only show the name and email</p>
  
  <p>My database 
  <a href="https://i.stack.imgur.com/DL5Ju.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DL5Ju.jpg" alt="Database"></a></p>
  
  <p>my code and progress so far</p>
  
  <pre><code>public class AdminActivity extends AppCompatActivity {
  private DrawerLayout mdrawerl;
  private ActionBarDrawerToggle mtoggle;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_admin);
      DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child("Accounts").child("Users");
      ref.addListenerForSingleValueEvent(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              collectName((Map&lt;String,Object&gt;)dataSnapshot.getValue());
          }
          private void collectName(Map&lt;String, Object&gt; value) {
          }
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }                         
      });
  </code></pre>
  
  <p>reference that i used <a href="https://stackoverflow.com/questions/38965731/how-to-get-all-childs-data-in-firebase-database">How to get all child&#39;s data in firebase database?</a></p>