String prefKey = "my_pref_key";
String prefVal = "my_pref_value;

SharedPreferences prefMgr =
PreferenceManager.getDefaultSharedPreferences(context);Editor prefEdit
= prefMgr.edit();

prefEdit.putString(prefKey, prefValue);

prefEdit.commit();


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Mar 14, 2012 at 2:34 PM, RedBullet <[email protected]> wrote:

> I have a bunch of preferences that I want the user to be able to set, but
> I also want to be able to store some values to keep between executions of
> my program. I didn't see a way to do this with shared preferences...
>
> Do I need to use something different??
>
> --
> 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

Reply via email to