Following is my android firebase example structure.
I know only groupID and userID, I want to update specific total value by based on groupID and userID. i have no idea please help me.
Following is my android firebase example structure.
I know only groupID and userID, I want to update specific total value by based on groupID and userID. i have no idea please help me.
I understand your confusion :
Let me explain you : For updating single value :
//For this you just need your node Id
databaseReference = FirebaseDatabase.getInstance().getReference().child("useramounts").child("your_node_id");
HashMap<String, Object> result = new HashMap<>();
result.put("total", total);
databaseReference.updateChildren(result);