Hi,

I have the following unexpected behaviour :
-> 1 start my application
-> I define a preference, thanks to the new mechanism (preferences
inflated from XML)
-> I stop my application

OPTION 1 :
-> I start my application for a second time, I check the preferences,
value is OK

OPTION 2 :
-> I close the emulator
-> I restart the emulator
-> I start my application, I check the preferences, value is NOT ok
(as not defined).

I was thinking the preferences are saved between two emulator
sessions.

Do I miss a point ?

Here is my preferences.xml file :
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
        xmlns:android="http://schemas.android.com/apk/res/android";>

    <PreferenceCategory android:title="Filter algorithm">

        <ListPreference
                android:key="units.returned"
                android:title="Displayed units"
                android:summary="Number of unit to be displayed on the
map screen"
                android:entries="@array/values_unit"
                android:entryValues="@array/values_unit"
                android:persistent="true"
                android:dialogTitle="Set the displayed units  number"/
>
</PreferenceScreen>

Thanks 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