开发者

Android: How do I deal with storing Bookmarks?

开发者 https://www.devze.com 2022-12-08 23:14 出处:网络
I am essentially using a listview but am looking at providing a bookmark functionality. I am thinking that I should store the item attributes in a file when bookmar开发者_运维知识库ked and retrieve wh

I am essentially using a listview but am looking at providing a bookmark functionality. I am thinking that I should store the item attributes in a file when bookmar开发者_运维知识库ked and retrieve when required to populate a bookmark listview.

I was wondering if there is a de facto standard used in achieving this or do I follow just the "writing into a file" and "reading from a file" when necessary style?


Instead of plain files (or XML) you could use a SQLite database (android supports that) to store the bookmarks. You'll find the documentation here.

When I started playing around with android, I used this Tutorial to get used to the SQLite-Interface of android. You might find it useful, too.

0

精彩评论

暂无评论...
验证码 换一张
取 消