문제

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 bookmarked 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top