How to save my Arraylist into SQLite database?

后端 未结 5 2292
独厮守ぢ
独厮守ぢ 2020-12-22 06:31

I want to save my ArrayList> mylist = new ArrayList>() in SQLite database and later retr

5条回答
  •  忘掉有多难
    2020-12-22 07:22

    Tutorial Link

    Please refer to the link above. I has a working example of using HashMap for SqLite operations using SQliteOpenHelper. It has one insertion at a time, but you might wanna create a loop, if you wish to insert them all in one instance.

提交回复
热议问题