joda-time-android alternatives and similar packages
Based on the "Utility" category.
Alternatively, view joda-time-android alternatives based on common mentions on social networks and blogs.
-
timber
A logger with a small, extensible API which provides utility on top of Android's normal Log class. -
StatusBarUtil
A util for setting status bar style on Android App. -
ExpirableDiskLruCache
Java implementation of a Disk-based LRU cache which specifically targets Android compatibility. -
Byte Buddy
Runtime code generation for the Java virtual machine. -
tape
A lightning fast, transactional, file-based FIFO for Android and Java. -
tray
a SharedPreferences replacement for Android with multiprocess support -
OpenKeychain
OpenKeychain is an OpenPGP implementation for Android. -
AutobahnAndroid
WebSocket & WAMP in Java for Android and Java 8 -
easydeviceinfo
:iphone: [Android Library] Get device information in a super easy way. -
Android-Templates-And-Utilities
Collection of source codes, utilities, templates and snippets for Android development. -
secure-preferences
Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure. -
greenrobot-common
General purpose utilities and hash functions for Android and Java (aka java-common) -
Androl4b
A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis -
vector-compat
A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop -
smoothie
Easy async loading for Android's ListView/GridView -
CastCompanionLibrary-android
CastCompanionLibrary-android is a library project to enable developers integrate Cast capabilities into their applications faster and easier. -
android_dbinspector
Android library for viewing, editing and sharing in app databases. -
AndroidBillingLibrary
Android Market In-app Billing Library -
motion
An Android library allowing images to exhibit a parallax effect that reacts to the device's tilt -
Colours
A beautiful set of predefined colors and a set of color methods to make your Android development life easier. -
EasyCamera
Wrapper around the android Camera class that simplifies its usage -
MrVector
[Deprecated] AKA VectorDrawableCompat: A 7+ backport of VectorDrawable -
Reservoir
Android library to easily serialize and cache your objects to disk using key/value pairs. -
davdroid
DAVdroid – CalDAV/CardDAV synchronization for Android 4+ devices -
android-validation-komensky
A simple library for validating user input in forms using annotations. -
dspec
A simple way to define and render UI specs on top of your Android UI. -
routable-android
Routable, an in-app native URL router, for Android -
Treasure
Very easy to use wrapper library for Android SharePreferences -
DebugLog
Create a simple and more understandable Android logs. -
RoboGif
A small utility to record Android device screen to a GIF -
GhostLog
Android app that displays the logcat buffer in a system overlay window
Appwrite - The Open Source Firebase alternative introduces iOS support
* 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 joda-time-android or a related project?
README
joda-time-android
This library is a version of Joda-Time built with Android in mind.
Why Joda-Time?
Android has built-in date and time handling - why bother with a library? If you've worked with Java's Date and Calendar classes you can probably answer this question yourself, but if not, check out Joda-Time's list of benefits.
For Android developers Joda-Time solves one critical problem: stale timezone data. Built-in timezone data is only updated when the OS is updated, and we all know how often that happens. Countries modify their timezones all the time; being able to update your own tz data keeps your app up-to-date and accurate.
Why This Library?
I know what you are thinking: Joda-Time is a great library and it's just a single JAR, so why make things more complex by wrapping it in an Android library?
There is a particular problem with the JAR setup on Android: due to its usage of ClassLoader.getResourceAsStream(), it greatly inflates its memory footprint on apps. (For more details, see this blog post.) This library avoids the problem for Android by loading from resources instead of a JAR.
This library also has extra utilities designed for Android. For example, see [DateUtils](library/src/main/java/net/danlew/android/joda/DateUtils.java), a port of Android's DateUtils.
Usage
Add the following dependency to build.gradle
:
dependencies {
implementation 'net.danlew:android.joda:2.12.0'
}
Multi-Process Apps
Due to using App Startup, joda-time-android will not automatically initialize in non-main processes.
If you would like to automatically run App Startup in other processes, add this to your manifest:
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
android:process="[your-process-name-here]"
tools:node="merge" />
Alternatively, you can call AppInitializer
directly to initialize just joda-time-android:
AppInitializer.getInstance(this).initializeComponent(JodaTimeInitializer::class.java)
Troubleshooting
Q: My build fails with an error about a duplicate file
Duplicate files copied in APK META-INF/LICENSE.txt
or
Duplicate files copied in APK META-INF/NOTICE.txt
A: We can safely exclude those files from our build. You need to specify these two exclude
s in your build.gradle
file and you will be good to go:
android {
...
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
or
B: We can safely choose to add those files to our build. You need to specify these two merge
s in your build.gradle
file and you will be good to go:
android {
...
packagingOptions {
merge '**/LICENSE.txt'
merge '**/NOTICE.txt'
}
}
*Note that all licence references and agreements mentioned in the joda-time-android README section above
are relevant to that project's source code only.