Android App Widget: Data storage

Posted by Jeffrey on Stack Overflow See other posts from Stack Overflow or by Jeffrey
Published on 2010-05-08T00:39:44Z Indexed on 2010/05/08 0:48 UTC
Read the original article Hit count: 304

Filed under:
|
|
|

Hello everyone, I'm implementing a home screen app widget. I was wondering which is better to store/read data: SharedPreferences or a SQLite database? The data is accessed from an AppWidgetProvider (similar to a BroadcastReceiver), and any given instance of the widget displays different data based on appWidgetId. Is one way or the other frowned upon?

Thanks for your time.

© Stack Overflow or respective owner

Related posts about android

Related posts about widget