I have an X bank that contains business categories and I want you to manually enter the data into Categories, send a copy to AllBusiness.
IamusingthiscodehoweverIamnotfindingawaytojustpickupthechildren
privatevoidcopyRecord(DatabaseReferencefromPath,finalDatabaseReferencetoPath){ValueEventListenervalueEventListener=newValueEventListener(){@OverridepublicvoidonDataChange(DataSnapshotdataSnapshot){toPath.setValue(dataSnapshot.getValue()).addOnCompleteListener(newOnCompleteListener<Void>(){@OverridepublicvoidonComplete(@NonNullTask<Void>task){if(task.isComplete()){Log.d(TAG,"Success!");
} else {
Log.d(TAG, "Copy failed!");
}
}
});
}
@Override
public void onCancelled(DatabaseError databaseError) {}
};
fromPath.addListenerForSingleValueEvent(valueEventListener);
}