I am creating an app in which points increases on button click and those points should be saved to firebase. I managed to save those data to firebase. But when I destroy my
I think that previous score is a string in you code @DHANANJAY KUMAR and Strings cannot be added and also what is the meaning of String.class. I think It can be made
int previousScore = dataSnapshot.getValue(Integer.class);