- Using singelton class to access/update SharedPreferences
- No need to pass context always for read/write SharedPreferences
- It uses apply() instead of commit()
- apply() is asynchronus save, doesn't return anything, it update value in memory first & changes are written to disk later asynchronusly.
- commit() is synchronus save, it return true/false based on outcome. Changes are written to disk synchronusly
-
Notifications
You must be signed in to change notification settings - Fork 0
akhgupta/Android-PreferenceDemo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published