On Thu, Aug 12, 2010 at 11:19 PM, Pino Silvaggio
<[email protected]>wrote:

> Yes PreferenceActivity is an Activity.
>
> But that not my problem.
>

No, it's your solution.

>From PreferenceActivity you can get the list of all preferences defined in
your Preferences, set click listeners for any of them, and call
startActivityForResult() from the PreferenceActivity to do whatever you
need. What's the problem with this?


> The issue is how do I create a custom preference like RingtonePreference
>

Extend Preference, just like it does?


> if what I need is in PreferenceManager and is hidden by package level?
>

I don't see what you *need* this.


> example:
>
> registerOnActivityResultListener
>
> which is needed if I want to call
> preferenceManager.getActivity().startActivityForResult()
>
> which getActivity() is also hidden.
>
> This makes no sense.
>

What makes no sense is why you feel you need to go through the
PreferenceManager functions when these two facilities are available to you
in PreferenceActivity.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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