Each preference you store must have its own key.  So if you have two
users, you need two unique keys.  Of course you could save a list of
values under a single key by putting them into a String and separating
the individual values with a separator of your own choosing.

On Jul 11, 8:33 pm, Kelvin <[email protected]> wrote:
> Hi,
>
> Not sure if i phrase it the correct way. What I meant is, eg. For a
> game application, user able to save multiple game files, or create
> multiple 'user account'. So at the start of the application, user can
> choose which account/saved file to load. Cause right now, I'm just
> able to save a single preference to the phone using the
> SharedPreferences class.
>
> 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

Reply via email to