I’m using androidX DataStore but i get the error o...
# android
p
I’m using androidX DataStore but i get the error of mutiple instance because i’m creating an instance of my preference class in all fragment and activity. How can i stop this error by reducing the number of instances. ?
u
Create a method in application class and use application context to create instance and make it synchronised