Retrieving data from Firebase Android Studio : My Database looks like this
[Firebase Databse][1]


  [1]: https://i.stack.imgur.com/gab3H.png


The code of my activity is this

        public class FirebaseActivity extends AppCompatActivity {
    
        ListView lv;
    
        private FirebaseDatabase database;
        private DatabaseReference myRef;
    
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_firebase);
    
            final List<String> glocations = new ArrayList<String>();
    
            lv = (ListView) findViewById(R.id.lv);
    
            database = FirebaseDatabase.getInstance();
            myRef = database.getReference();
            myRef.child("Users").addValueEventListener(new ValueEventListener() {
                @Override
                public void onDataChange(DataSnapshot dataSnapshot) {
                   Iterable<DataSnapshot> children = dataSnapshot.getChildren();
    
                    for (DataSnapshot child: children){
                        String data = child.getValue(String.class);
                        glocations.add(data);
    
                    }
                }
    
                @Override
                public void onCancelled(DatabaseError databaseError) {
    
                }
            });
    
            ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,glocations);
    
            lv.setAdapter(adapter);
        }
    }


Now whenever I try to open the activity from the settings menu on the main activity my application crashes. All I want it to do is show the Latitude, the longitude and the timestamps each time the user changes them in a listview by using a simple list with the array adapter.
This is a different activity and not the main one. The main one works perfectly. I've watched countless videos and I cannot understand my mistake.