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

Firebase – call by phone number on button click (java)

I have a call method on button click button_call=(Button) findViewById(R.id.button_call); button_call.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent=new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:+79142214017")); startActivity(intent); } }); And the data transfer method in Firebase private void validateClientInfo() { if (TextUtils.isEmpty(client_edit.getText().toString())) {…

VIEW QUESTION
Back To Top
Search