Description
Simple Android SharedPreferences wrapper that will allow you to work easily and in a clean way with them.
Prefs alternatives and similar packages
Based on the "Tools" category.
Alternatively, view Prefs alternatives based on common mentions on social networks and blogs.
-
dex-method-counts
DISCONTINUED. Command-line tool to count per-package methods in Android .dex files -
vectalign
Tool for create complex morphing animations using VectorDrawables (allows morphing between any pair of SVG images) -
Uber Apk Signer
A cli tool that helps signing and zip aligning single or multiple Android application packages (APKs) with either debug or provided release certificates. It supports v1, v2 and v3 Android signing scheme has an embedded debug keystore and auto verifies after signing. -
maven-android-sdk-deployer
A tool to install components of the Android SDK into a Maven repository or repository manager to use with the Android Maven Plugin, Gradle and other tools. -
android-resource-remover
A simple utility to remove unused resources in your Android app to lower the size of the APK. It's based on the Android lint tool output. -
AndroidLocalizationer
DISCONTINUED. This is a Android Studio/ IntelliJ IDEA plugin to localize your Android app, translate your string resources automactically. -
Debug Bottle
🍼Debug Bottle is an Android runtime debug / develop tools written using kotlin language. -
density-converter
A multi platform image density converting tool converting single or batches of images to Android, iOS, Windows or CSS specific formats and density versions given the source scale factor or width/height in dp. It has a graphical and command line interface and supports many image types (svg, psd, 9-patch, etc.) aswell as some lossless compressors like pngcrush. -
USB-Device-Info
This application will provide information about almost all currently plugged-in USB devices. -
TaggerString
TaggerString is very light library which allows to build dynamic string resource in much more readable way. -
release-android-library
Remote script to create a maven compatible release of an android library (aar) -
Uber Adb Tools for Android
A tool that enables advanced features through adb installing and uninstalling apps like wildcards and multi device support. Useful if you want to clean your test device from all company apks or install a lot of apks in one go. Written in Java so it should run on your platform. -
Android-Intent-Library
A library which will save you a lot of time from writing the same intent creation code. it consist of many intent creation codes like Share, Contacts, Email and etc, which you can easily use.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Prefs or a related project?
README
Prefs
Simple Android SharedPreferences
wrapper.
Repository
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
dependencies {
...
compile 'com.github.GrenderG:Prefs:1.3'
}
Usage
This is the basic usage, you can read values (specifying a default value or not) and write values like so:
Prefs.with(yourContext).readInt(YOUR_KEY_VALUE);
Prefs.with(yourContext).readInt(YOUR_KEY_VALUE, defaultValue);
Prefs.with(yourContext).writeInt(YOUR_KEY_VALUE, valueToStore);
You can also specify a custom name for the preferences' name:
Prefs.with(yourContext, "CUSTOM_NAME").readInt(YOUR_KEY_VALUE);
And force the re-instantiation of the Prefs instance:
Prefs.with(yourContext, true).readInt(YOUR_KEY_VALUE);
Prefs.with(yourContext, "CUSTOM_NAME", true).readInt(YOUR_KEY_VALUE);
You can also set and retrieve ordered String sets
and unordered String sets
.