Advertisements

RT DB setValue function for root node

        //Getting Reference to Root Node
        DatabaseReference myRef = database.getReference();

        //Setting Value
        myRef.setValue("This is root node value");