On Wed, Feb 23, 2011 at 11:05 AM, Jake Colman <[email protected]> wrote:
> Dumb question: Which one did I use in the code snippet that I showed you
> in my prior post?

Beats me. It was your code... :-)

> What do you suggest I look into for persisting three simple variables?
> Would a database or a file be the better way to go?  I am asking in
> terms of Android best practice.

:: shrug ::

Many people will say a file is simpler than a database. That becomes
somewhat less true now that we need to worry more about syncing the
data to the filesystem, with ext4 support and all that.

While I'm not a big fan of using SharedPreferences for things other
than user settings -- too many people use this when a database would
be a better answer -- it is probably the least-complex option where
the file syncing is handled for you.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to