How to insert arraylist or vector into SQLite Database in android? -


i new android. need store arraylist or vector in database(sqlite) value 1 of column. have searched regarding storing arraylist or vector. in thant suggested convert arraylist json. there other solution problem other converting arraylist json. please give me solution or article regarding issue.

its urgent. please me.

vectors , lists data structures. sqlite columns accept atomic values, namely numbers, strings , blobs.

therefore need serialize (convert) vector/list single string or blob - numbers won't anyway. have use encoding uniquely reversible , preserve special properties of data structure.

sure, can re-invent wheel , use own encoding. or semi-reinvent wheel using java serialization api. or use json, more tried solution.

if you, however, i'd first consider changing database schema. lists , vectors close enough relational model might able store them in database without serialization techniques.

edit:

see this question , this one.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -