Pino,
You can always implement your own subclass of Preference.
The same thing can be done differently inside Android and in "regular"
applications, that's Ok.
Subclassing Preference is actually quite nice, since the base class
handles the drawing of title and subtitle strings, so your own
preference will automatically have the right look.
Override onClick() and do whatever it is you want to do.
-- Kostya
13.08.2010 8:19, Pino Silvaggio пишет:
Yes PreferenceActivity is an Activity.
But that not my problem.
The issue is how do I create a custom preference like
RingtonePreference
if what I need is in PreferenceManager and is hidden by package level?
example:
registerOnActivityResultListener
which is needed if I want to call
preferenceManager.getActivity().startActivityForResult()
which getActivity() is also hidden.
This makes no sense.
On Aug 12, 11:13 pm, TreKing<[email protected]> wrote:
On Thu, Aug 12, 2010 at 4:19 PM, Pino Silvaggio<[email protected]>wrote:
How should I proceed?
Hint: PreferenceActivity is an Activity like any other ...
-------------------------------------------------------------------------------------------------
TreKing<http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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