title: Android Firebase Failed to convert value of type java.util.HashMap to String
body: <p>I'm trying to use the listview using array adapter on my fragment but when trying to do it using the tutorial, It crashes every time i open that specific fragment. I'm trying to show the data on my firebase into the listview but it crashes every time i open it. </p>
  
  <p>Here's my database
  <a href="https://i.stack.imgur.com/yu4R5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yu4R5.jpg" alt="enter image description here"></a></p>
  
  <p>From the picture My plan is  to only show the email and name of the user and not to include the type but I'll do that later. </p>
  
  <p>And here's my code</p>
  
  <pre><code>public class memberFragment extends Fragment {
  private ListView mylistView;
  private DatabaseReference mDatabase;
  ArrayList&lt;String&gt; myArrayList = new ArrayList&lt;&gt;();
  FirebaseDatabase myFirebase;
  
  
  public memberFragment() {
      // Required empty public constructor
  }
  
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_member2, container, false);
      mDatabase = FirebaseDatabase.getInstance().getReference().child("Accounts").child("Users");
      final ArrayAdapter&lt;String&gt; myArrayAdapter = new ArrayAdapter&lt;String&gt;(getActivity(),android.R.layout.simple_list_item_1,myArrayList);
       mylistView = (ListView)view.findViewById(R.id.listView);
       mylistView.setAdapter(myArrayAdapter);
  
  
      mDatabase.addChildEventListener(new ChildEventListener() {
          @Override
          public void onChildAdded(DataSnapshot dataSnapshot, String s) {
              String myChildValues = dataSnapshot.getValue(String.class);
              myArrayList.add(myChildValues);
              myArrayAdapter.notifyDataSetChanged();
  
  
          }
  
          @Override
          public void onChildChanged(DataSnapshot dataSnapshot, String s) {
              myArrayAdapter.notifyDataSetChanged();
  
          }
  
          @Override
          public void onChildRemoved(DataSnapshot dataSnapshot) {
  
          }
  
          @Override
          public void onChildMoved(DataSnapshot dataSnapshot, String s) {
  
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
      // Inflate the layout for this fragment
      return view;
  </code></pre>
  
  <p>Any ideas what might be causing the problem? I tried to searched and found out its related to hashmap or map, but I have no idea how to put it on my array?</p>