Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNevo Mashiach
3,003 PointsWhere are shared preferences stored?
If I understand it correctly, they are saved in the internal storage, but unlike "classic" internal storage save, shared preferences are loaded to the memory right when the app is entered. Am I right?
1 Answer
Ben Deitch
Treehouse TeacherFor the most part :)
SharedPreferences are stored internally in your app's files - meaning if you uninstall the app, the data in the SharedPreferences will be lost. As for when they are loaded, I'd assume SharedPreferences aren't loaded until you create the SharedPreference object accessing them.