SharedPreferences is your answer to simple storage
Joanna Smith
1096

Hi Joanna, if I initialise a SharedPreferences object inside my onCreate for example. How do I use this object to store primitive data in a data Listener (Firebase for example) so even outside the listener I can still have access to data that has been stored inside the object, that is, outside the scope of the listener’s method?

Thank you!