Sorry there is no easy way to make a compatibility version of PreferenceActivity and PreferenceFragment. They still take the same preference XML definition and APIs, though, so I suspect that have code that uses one or the other depending on the platform version could share a very large amount of common implementation.
On Fri, Apr 8, 2011 at 4:59 PM, Jay SB <[email protected]> wrote: > Hello All, > > I'm looking to write preferences that can be applied to both 3.0 and > pre-3.0 devices. Discovering that PreferenceActivity contains > deprecated methods (although these are used in the accompanying sample > code), I looked at PreferenceFragement and the compatibility package > to solve my woes. > > It appears, though, that PreferenceFragment isn't in the compatibility > package. Can anyone tell me whether this was intentional? If so, can I > easily target a range of devices (i.e. < 3.0 and >=3.0) or will I have > to jump through hoops? If it wasn't intentionally excluded, can we > expect a new release of the compatibility package? Or is there another > workaround that is safe to use? > > Regards, > Jay > > -- > 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 > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

