Siddharth Lele
Siddharth Lele

Reputation: 27748

New activity from default preferences

I have setup my default android Preferences with the necessary options. The prime reason of the Preferences are to allow users to manage their resources. In the context of my app, they are "Contacts", "Types of projects" and "Currency".

The "Currency" section works fine. The display just yet, not the programming. But what I really want to do is, when either of the "Contacts" or "Type of projects" is clicked, they should open another custom activity to let the user manage his contacts. These are by the way, not the android contacts. It is an activity connected to a database table allowing users to manage his contacts and his type of projects.

Any advise on this please? Perhaps, I shouldn't be using the default android preferences at all?

This is my XML code for the Preferences:

<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"    >

<PreferenceCategory
    android:title="Manage your resources"    >

        <ListPreference 
            android:key="contacts"
            android:title="Manage your Contacts" 
            android:summary="Click here to ADD, EDIT and DELETE Contacts"    >
        </ListPreference>

        <ListPreference
            android:key="projects"
            android:title="Types of Projects"
            android:summary="Click here to maintain a list of Types of Projects that match your profession"    >
        </ListPreference>

        <ListPreference
            android:key="currency"
            android:title="Select currency"
            android:summary="Set a default currency that you wish to use" android:entryValues="@array/entryvalues_list_preference" android:entries="@array/entries_list_preference">
        </ListPreference>

</PreferenceCategory>

Thanks in advance....

Upvotes: 0

Views: 415

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006604

Perhaps, I shouldn't be using the default android preferences at all?

IMHO, you "shouldn't be using the default android preferences" for "Contacts" and "Types of Projects", if you will be rendering a non-preference UI for them.

Upvotes: 1

Related Questions