Is there a recommended approach to using SharedPre...
# android
d
Is there a recommended approach to using SharedPreferences when dealing with MVVM and LiveData?
google 3
stackoverflow 5
s
Its yet another data source, abstract it out to repository
👍 3
d
Thanks for your direction Vairavan
g
Nice solution, I just added a companion object in MainActivy and initialised it in the onCreate method