Hi!
I'm new in this group and developing Android as well.

I'm working in a PreferenceActivity with a ListPreference.

I created the xml and array.xml well.

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
  xmlns:android="http://schemas.android.com/apk/res/android";>
        <ListPreference
                android:key="denbora_3g"
                android:title="@string/denbora_label"
                android:summary="@string/denbora_summary"
                android:entries="@array/denbora"
                android:entryValues="@array/denbora_values"
                android:defaultValue="10000"
        />
</PreferenceScreen>

<?xml version="1.0" encoding="utf-8"?>
<resources>
        <array name="denbora">
                <item>@string/denbora_10</item>
                <item>@string/denbora_15</item>
                <item>@string/denbora_20</item>
                <item>@string/denbora_25</item>
        </array>
        <array name="denbora_values">
                <item>10000</item>
                <item>15000</item>
                <item>20000</item>
                <item>25000</item>
        </array>
</resources>

Now I want to get the value clicked in the ListPreference, in the java
class.

How can I do it?

Thanks a lot!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to