skip to Main Content

How do I push my data (in key:value pair) into my Firebase realtime database in android?

I want to push my data (in key:value pair) into my Realtime Database. This is my code: DatabaseReference pay_details = database.getReference("pay/0/0/"); pay_details.push( { "Actual amount":arr.get(i).get(9), "Current reading":arr.get(i).get(5), "Employee":arr.get(i).get(1), "Expected amount":arr.get(i).get(9), "Installment":arr.get(i).get(10), "Meter current date":arr.get(i).get(3), "Meter previous date":arr.get(i).get(2), "Previous reading":arr.get(i).get(4), "Start…

VIEW QUESTION
Back To Top
Search