Is there a sample of this in apidemos or somewhere else?
On Apr 13, 2:06 pm, Kristopher Micinski
wrote:
> Yes, use a database.
>
> Kris
>
>
>
>
>
>
>
> On Wed, Apr 13, 2011 at 2:59 PM, bob wrote:
> > Does Android provide an easy way to store data like high scores on a
> > device?
>
> > Thanks.
>
Have a look at
http://developer.android.com/guide/topics/data/data-storage.html#db
SharedPreferences would probably be the easiest way, although depending on
the complexity SQLite may be your best option.
--
You received this message because you are subscribed to the Google
Groups "Android Dev
I'm thinking of sticking a comma-separated list of type String into
SharedPreferences.
On Apr 18, 3:10 pm, #13point7 wrote:
> Have a look
> athttp://developer.android.com/guide/topics/data/data-storage.html#db
>
> SharedPreferences would probably be the easiest way, although depending on
> the c
On Apr 18, 9:57 pm, bob wrote:
> What is the smartest way to save the top ten high scores in an Android
> game?
For top ten Shared preferences may be enough. I store 200 local
results
and 1000 global results pulled from server in JSON files and marshall
them to java objects via:
https://git
FWIW, I like to keep the top 5. Even if playing against yourself, it's
nice to see the recent high marks you've hit. Or at least I like to
sometimes - so everyone gets a screen that does it they can
ignore. :-)
On Apr 16, 4:58 pm, Filip Havlicek wrote:
> You're welcome, Kris, I'm glad you can bat
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 wrote:
> Is there a sample of this in apidemos or somewhere else?
>
> On Apr 13, 2:06 pm, Kristopher Micinski
> wrote:
> > Yes, use
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 wrote:
> Surely there is,
>
> Google "Android Content Provider" and read about that for a few hours, then
> you'll be set w
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.
Kr
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 y
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 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 sh
How likely is it that ten people will use the same Android device? If you
really need a highscore list it should live on your game server, not on the
device.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send ema
I'd imagine that this is the same as how high scores work on a desktop: most
of the time only I use my desktop, but Microsoft Solitaire still keeps track
of high scores.
Kris
On Sat, Apr 16, 2011 at 6:34 PM, lbendlin wrote:
> How likely is it that ten people will use the same Android device? I
You're welcome, Kris, I'm glad you can bath in the light of my knowledge :)
Ibendlin, ten people is unlikely, but I can imagine 4-5 people playing games
on one device (not everyone has a thousand dollars to buy a new smartphone
for every child, but believe me, everyone wants to play with the new t
This was asked a few days ago, google the list.
Kris
On Mon, Apr 18, 2011 at 4:10 PM, #13point7 wrote:
> Have a look at
> http://developer.android.com/guide/topics/data/data-storage.html#db
>
> SharedPreferences would probably be the easiest way, although depending on
> the complexity SQLite ma
14 matches
Mail list logo