So I have an ArrayList of objects that I need to be able to add to firebase when a new element is added to the ArrayList or an element in the ArrayList is changed. How would I push these changes up to firebase?
Ended up finding an answer here //https://firebase.google.com/docs/database/web/read-and-write
Need a database reference DatabaseReference database=FirebaseDatabase.getInstance().getReference(key); Then put database.child(key).setValue(value); Where key is the name of your variable and value is the value of your variable you are storing
Expanding on Jared's answer, the command database.child(key).push().setValue(value); will add an additional value without replacing the data that is there. If you want to set that child to have a singular value, leave out the .push()