I want to send a text area (message) into the Fire base database. I can save a string but it does not work with a text area here is my code:
Map<String, Object> updates = new HashMap<String, Object>();
updates.put("Your Message: ", textArea);
f.setValue(updates);So yea i want to save a text area to the firebase database, I also want to know how I can send it to a specific entity for example.
save at Name: mystring or at ID: myid if there is a way to use JSON with java or something to send data, please let me know thanks. I am new to fire base.
Firebase ref = new Firebase(...);
ref.child("id-123").setValue(mTextView.getText().toString());
Map<String, Object> message = new HashMap<String, Object>();
message.put("message", textArea.getText().toString());
// any other things you want to store in this here, e.g. user
f.setValue(message);{ "message": ... }