How to update and delete firebase data in android java?

111
April 20, 2022, at 04:50 AM

I am getting nothing in response while updating or deleting the data this line but the inserting and retriving works fine and please do answer i am new to android development

 @Override
protected void onBindViewHolder(@NonNull ToDoHolder holder,int position, @NonNull ToDoItem model) {
    holder.delete.setOnClickListener(view -> {
        AlertDialog.Builder builder=new AlertDialog.Builder(holder.delete.getContext());
        String deleteId = model.getUid();
        builder.setTitle("Delete Panel");
        builder.setMessage("Delete...?");
        builder.setPositiveButton("Yes", (dialogInterface, i) -> mDatabase.child("todos")
                .child(deleteId).removeValue());
        builder.setNegativeButton("No", (dialogInterface, i) -> {
        });
        builder.show();
    });
}
Rent Charter Buses Company
READ ALSO
Flutter: the action button in flutter callkit incoming package didn't work

Flutter: the action button in flutter callkit incoming package didn't work

the action button in flutter callkit incoming package didn't workI tried a lot but in the background it doesnot work

84
Android WebView onPermissionRequest is not calling

Android WebView onPermissionRequest is not calling

I m new to Pyjnius and androidI m trying to make a video calling app But my onPermissionRequest is not Called when my WebView PopUps

88
RN Release build fails, but debug runs. Error:Execution failed for task ':app:compileReleaseJavaWithJavac'

RN Release build fails, but debug runs. Error:Execution failed for task ':app:compileReleaseJavaWithJavac'

I have a react-native app that runs perfectly well in debug, but fails on a release buildRunning node 16

81
Firebase Push notification not receiving on Android 12

Firebase Push notification not receiving on Android 12

My XamarinAndroid app's push notification only works on Android 11 (Pixel 3 XL)

95