Oh really? Thanks, I didn't catch it before, but I do now, all due to your enlightenment :-)
Kris On Sat, Apr 16, 2011 at 6:24 PM, Filip Havlicek <[email protected]>wrote: > I think what Dianne was trying to say is that if you, let's say, make a > Tetris-like game and want to store a top 10 list, just make ten shared > preferences, the data won't be large, they will be fast to access and there > is no need for a database table for that. If you make a tower defense game > and you want to keep high scores for every map and possibly for every game > profile, database would be preferable. > > Best regards, > Filip Havlicek > > 2011/4/14 Kristopher Micinski <[email protected]> > >> That's fair, I'm admittedly not sure of best practices with >> SharedPreferences w.r.t amount of data stored so I tend to be conservative. >> If you want to store lots of scores or scale to player info and stuff like >> that, a DB would be nice, but Dianne's much more in the loop than I on these >> calls. >> >> Kris >> >> On Wed, Apr 13, 2011 at 11:20 PM, Dianne Hackborn <[email protected]>wrote: >> >>> Or just use SharedPreferences. There is probably no need to deal with >>> database just to store a handful of high scores. >>> >>> On Wed, Apr 13, 2011 at 6:14 PM, Kristopher Micinski < >>> [email protected]> wrote: >>> >>>> Surely there is, >>>> >>>> Google "Android Content Provider" and read about that for a few hours, >>>> then you'll be set well off... >>>> >>>> Kris >>>> >>>> >>>> On Wed, Apr 13, 2011 at 7:37 PM, bob <[email protected]> wrote: >>>> >>>>> Is there a sample of this in apidemos or somewhere else? >>>>> >>>>> On Apr 13, 2:06 pm, Kristopher Micinski <[email protected]> >>>>> wrote: >>>>> > Yes, use a database. >>>>> > >>>>> > Kris >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > On Wed, Apr 13, 2011 at 2:59 PM, bob <[email protected]> wrote: >>>>> > > Does Android provide an easy way to store data like high scores on >>>>> a >>>>> > > device? >>>>> > >>>>> > > Thanks. >>>>> > >>>>> > > -- >>>>> > > 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 >>>>> >>>>> -- >>>>> 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 >>>>> >>>> >>>> -- >>>> 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 >>>> >>> >>> >>> >>> -- >>> Dianne Hackborn >>> Android framework engineer >>> [email protected] >>> >>> Note: please don't send private questions to me, as I don't have time to >>> provide private support, and so won't reply to such e-mails. All such >>> questions should be posted on public forums, where I and others can see and >>> answer them. >>> >>> >> -- >> 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 >> > > -- > 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 -- 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

