save multiple text line in sqlite
I want to know how to save multiple lines of tex开发者_运维知识库t in a SQLite field.
I create a EditText
IE:
My test with
Multiple Line Of description
When I save the text in SQLite using something like below, it only retains the first line.
db.insertDescription(EditText.getText().toString());
Is it possible to save all of the text instead of just the first line?
Parse out the new lines and replace it with something else, e.g. $%&%$
, and put the new lines back in when you fetch from the database.
精彩评论