开发者

What type of data storage should I use in Android?

I want to downlo开发者_如何学Pythonad 90+ items from an RSS Feed and I want to display it using a Listview and a custom arrayadapter. What form of data storage should I use to store these deals? I could just pass an array of objects filled with strings and ints(the strings are long btw) but I don't know whether this is a proper design pattern in Android.


Here's one method. Download the items from the feed and cache them in a local SQLite database. When the user wants to view these items, you can feed your local database into a SimpleCursorAdapter and set the ListView to use that adapter.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜