AndroidUtils
AndroidUtils copied to clipboard
Little helpers for Android development.
AndroidUtils
Some helper code for Android app development.
-
AndroidUtils
helper methods to- check for Android version (like
AndroidUtils.isLollipopOrHigher()
), - an active or unmetered network connection,
- external storage state availability.
- check for Android version (like
-
CheatSheet
(original version by Roman Nurik) to display info toasts for any view (similar to action items) on long press or pointer hover.- Note: this is now just a wrapper for
TooltipCompat
from AndroidX appcompat, for new code it should probably be used directly.
- Note: this is now just a wrapper for
-
GenericSimpleLoader
offers a basicAsyncTaskLoader
implementation to load simple objects or a list of objects.- Note: new code should probably use ViewModel and LiveData instead.
Usage
This library is available on Maven Central.
implementation("com.uwetrottmann.androidutils:androidutils:3.0.0")
License
This work by Uwe Trottmann is licensed under the Apache License 2.0.
Contributors and changes are tracked by Git.
Do not just copy, make it better.