It does work, it is used in many of the apps, and the ApiDemos example
shows it too.  Have you looked at the log to see any error messages
reported?  You also might want to try wiping data to make sure you
data partition is all in good shape.

On Aug 29, 1:10 am, CG <[EMAIL PROTECTED]> wrote:
> I just up the subject because it seems to be a bug or a mess in the
> documentation.
>
> Before trying to use the new preference mechanism I try my previous
> preference storage (that worked perfectly under m5).
> This mechanism worked before like that :
>
> Restore :
>
>    public static void restoreConfig(Activity act) {
>         //--- OLD
>         SharedPreferences settings =
> act.getSharedPreferences(Constant.CONFIG_FILE_NAME,
> Context.MODE_PRIVATE);
> .....
>
> Save :
>  public static void saveConfig(Context act) {
> //--- OLD
>         SharedPreferences settings =
> act.getSharedPreferences(Constant.CONFIG_FILE_NAME,
> Context.MODE_PRIVATE);
>         SharedPreferences.Editor editor = settings.edit();
>         editor.clear();
>
>         editor.putInt(Constant.CONFIG_KEY_STATION_RETURNED,
> getMaxStationReturned());
> ....
>         editor.commit();
>
>     }
>
> I saw no changes in the documentation regardding this point and the
> code still compiles, even after the 0.9 migration.
> So my other question is : why does this mechanism does not work after
> the 0.9 migration ?
> Do we have to put specific permission ?
>
> Then I still don't understand the new mechanism does not save
> persistent data.
>
> Thx for your help.
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to