AndroidGlobalUtils

Additional

Language
Java
Version
N/A
Created
Dec 25, 2015
Updated
Nov 28, 2018 (Retired)
Owner
A7madev (a7madev)
Contributor
A7madev (a7madev)
1
Activity
Badge
Generate
Download
Source code

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