How To Store The Contents Of An Arraylist In One Column Of Table In Sqlite Database In Android?
I am having an arraylist  of strings. I needt to store that arraylist in the 1 column of database. How can I do that?
Solution 1:
You can consider serializing an object into byte[] and saving it in your DB as a BLOB or going further encoding it in Base64 and saving as a TEXT. I'm not sure that any of these two are a good way to save your ArrayList - I'm just pointing options.
You might also consider creating other table and creating relation between them. There is a good pratice in databases called First Normal Form.
Post a Comment for "How To Store The Contents Of An Arraylist In One Column Of Table In Sqlite Database In Android?"