开发者

What type of data storage should I use in Android?

开发者 https://www.devze.com 2023-03-30 03:38 出处:网络
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 cou

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

精彩评论

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