AndroidGlobalUtils


Source link: https://github.com/A7maDev/AndroidGlobalUtils

AndroidGlobalUtils

Overview

Global Utilities for Android

Installation

Gradle

Step 1*Add to project build.gradle

dependencies {

  compile 'me.a7madev.androidglobalutils:library:1.+' 
}
 

Step 2*Import package in your java class

import me.a7madev.androidglobalutils.*; 

Usage

GlobalUtils Class

  • isDebug
  • logThis
  • showToast
  • checkForInternetConnection
  • getTypeFace
  • getTypedArrayResource
  • getStringArray
  • getIntArray
  • convertStringArrayToArrayList
  • getContentFromClipboard
  • requestMultiplePermissions
  • initProgressDialog
  • dismissProgressDialog
  • getBitmapByResourceID
  • getShareTextIntent
  • openShareTextIntent
  • getCallIntent
  • openCallIntent
  • getURLIntent
  • openURLIntent
  • getnEmailIntent
  • openEmailIntent
  • changeActivityTheme
  • loadImage
  • generateUUID
  • todayTimestamp
  • createDateTimeString
  • getTwoDigitsInt
  • validateText
  • getDisplaySize
  • getDisplayDensity
  • convertDpToPx
  • convertPxToDp
  • getCalendarMonthDisplay
  • convertStringToInt
  • convertDoubleToString
  • dismissAlertDialog
  • dismissLoading
  • getColor
  • getDrawable
  • getAppVersionName
  • getAppVersionCode
  • setActionBarTitle
  • setActionBarBackButton
  • todayDateTime
  • todayLocalDateTime
  • validateAndSetAlternativeString
  • isBuildFlavor
  • generateNowTimestampString
  • generateNowTimestamp
  • openSMSIntent
  • parseToHTML
  • showSnackbar
  • getAllChildrenInView
  • dismissSearchView
  • convertBooleanToString
  • rotateImage
  • convertStringToDouble
  • hideKeyboard
  • convertIntToString
  • generateDateTimeString
  • getDateTime
  • getSharedPrefs
  • initSharedPrefs
  • clearSharedPrefs
  • logIntentExtras
  • saveSharedPrefsOne
  • saveSharedPrefsList
  • sleepThread
  • convertStringToLong
  • getHumanReadableBoolean
  • getURIFromURL
  • encodeURL
  • convertStringToFloat
  • convertLongToString
  • convertFloatToString
  • getFormattedDateString
  • getRelativeDateTimeString
  • getBoolFromBooleanObject
  • setupSwipeRefresh
  • disableSwipeRefresh
  • convertListToString
  • convertIntToBoolean
  • convertBooleanToInt
  • initSpinnerFromList
  • convertIntegerToString

GlobalFileUtils Class

  • getMimeType
  • openFileIntent
  • getFileIntent
  • getFilesListFromDirectory
  • getMediaThumbnailFromFile
  • deleteFile
  • getStorageDirectory
  • isExternalStorageWritable
  • isExternalStorageReadable
  • getFileNameFromURL
  • acceptImageFromFile
  • acceptVideoFromFile
  • acceptImageFromFilePath
  • acceptVideoFromFilePath
  • getURIFromFilePath
  • getShareFileIntent
  • openShareFileIntent
  • getMimeTypeFromFileURI
  • getMimeTypeFromFile
  • getPathFromFileURI

Other Classes

  • CustomScrollView
  • CustomViewPagerAdapter
  • ToggleableRadioButton

License

This plugin is available under the GPL License, Version 3.0.

(c) All rights reserved A7madev

Resources

It's a framework for building Android UI in Kotlin code by using the concept of virtual views and reactive data flow, the goal is to reduce boilerplate while retaining the same Android layout constructs.

EasyIntro is the flexible, easy to use, all in one app intro library for your Android project.

A quick adapter library for ListView, GridView, RecyclerView, ViewPager and ExpandableListView on android.

Loading drawable indicators, can be combined with any View as the loading View.

Agera is a set of classes and interfaces to help write functional, asynchronous, and reactive applications for Android.

This library is a set of simple wrapper classes that are aimed to help you easily create fancy material dialogs.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes