Global Utilities for Android Developers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
gradle/wrapper
library
readme
.gitattributes
.gitignore
.travis.yml
README.md
bintrayUpload.bat
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Download Android Arsenal

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