Well, I am new to Firebase and I want to have my own keys while pushing new data to database.
Problem:
FireBase.push().setValue(mapped_values);
Simple and Fast
Map taskMap = new HashMap<>(); taskMap.put("Name", name.getText().toString()); taskMap.put("km", km.getText().toString()); // taskMap.put("age", "45"); taskMap.put("Day", day.getText().toString()); mDatabaseReference.push().setValue(taskMap);