Everything is working as described in the book but I’m wondering what changes I need to make to account for the deprecation of the PreferenceManager class.
Amongst other things I tried importing androidx.preference.PreferenceManager
instead of android.preference...
per this SO post but that only resulted in an unresolved reference to preference
.
I fear I’m a bit out of my league here, or I’m missing some fundamentals. Your iOS Apprentice book was much easier to follow as a complete novice iOS programmer. I’d hoped this book would be equally enlightening. Is there another book I should be starting with for Android development? Kotlin Apprentice was next on my list. Perhaps I should have started there.
Thanks for all your hard work putting these books together!
Kenny
Edit:
So I found and ran Refactor->Migrate to AndroidX…
and added implementation 'androidx.preference:preference-ktx:1.1.0'
to build.gradle
After a few additional minor updates and a rebuild I seem to be in good shape.
Guess I jumped the gun posting here. Unless of course this was the wrong course of action…
Thanks again!