esperandro: Easy SharedPreference Engine for Android
esperandro helps Android developers using the SharedPreferences of the Android system in a more convenient way and avoid the boilerplate code involved when you use them the usual way. By defining which keys exist, along with their type, for each used named SharedPreference the usage of these preferences is both, typesafe and easy. For this purpose esperandro uses an Annotation Processor to generate a class implementing the defined interface at compile time. When storing and accessing preferences in the future, this generated class is used.
Add the following dependency,
<dependency> <groupId>de.devland.esperandro</groupId> <artifactId>esperandro-api</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>de.devland.esperandro</groupId> <artifactId>esperandro</artifactId> <version>2.0.0</version> <scope>provided</scope> </dependency>