In my Android app, I want to make a preference activity using PreferenceActivity
because I am addressing phones where androidx
is not available (PreferenceActivity
is indeed not deprecated until API 28). However, the essential method addPreferencesFromResource()
, which I saw being used in nearly every tutorial on that, is deprecated in API 15 already. The same applies for other methods.
How to use PreferenceActivity
in APIs 15 to 28? Is there a tutorial somewhere or can this be explained briefly? Thank you!