Manage shared preferences on Android.
A library to manage shared preferences on Android 4.0 (API 14) and above devices.
I have various apps on Google Play and sometimes it is required to access shared preferences from anywhere within an app. So, I wrote this library to provide that functionality easily and quickly. Please read below to know more about its usage.
It is based on the
singleton approach to manage shared preferences within an app. This library is fully commented so I am highlighting some of the features below.
Please follow and keep exploring the GitHub repository to find out more hidden features.
DynamicPreferences must be initialized once before accessing its methods.
After initializing, its various public methods can be accessed via getting the initialized instance.
It supports the saving of
Set<String> value types into the shared preferences.
It supports the retrieval of
Set<String> value types from the shared preferences.
It supports the deletion of a particular
key or a complete shared preferences.
It depends on the dynamic-utils to perform various internal operations. So, its functions can also be used to perform other useful operations.
Please follow the GitHub repository for the installation guide. I hope it will help you in your projects and please ask questions or share your feedback in the comments section to make it better.