Skip to content
Abid Ali edited this page Feb 4, 2018 · 1 revision

This library consist of various helpers/utility as mentioned below:

Validation

ValidationUtility

To validate various java objects.

arguments functionName returns
String validateEmail() boolean
Various java object isEmpty() boolean
Various java object isNotEmpty() boolean

Utility

ActionUtility

To perform action output app context.

arguments functionName returns
context, packageName openInStore() void
context , emailId, subject, chooserTitle sendEMail() void

ClipboardUtility

To perform operation related to android clipboard.

arguments functionName returns
context, label, content copyToClipboard() void
context, label, contentUri copyToClipboard() void
context, label, appIntent copyToClipboard() void
context , emailId, subject, chooserTitle getDataFromClipboard() List<ClipData.Item>
context , emailId, subject, chooserTitle clearClipboard() void

SoftwareUtility

To get android software information.

arguments functionName returns
no argemnts getAndroidName() String

WifiUtility

To get wifi related information.

arguments functionName returns
context isConnected() boolean
context getCurrentSignalStrength() int
context getCurrentSignalQuality() int
context, qualityLevel getCurrentSignalStrength() int
context getCurrentFrequency() int

Helper

DefaultSharedPreferenceHelper

To get shared preference value from android default preference file.

arguments functionName returns
context, key, defaultValue getString() String
context, key, defaultValue getInt() int
context, key, defaultValue getBoolean() boolean

SharedPreferenceHelper

To get shared preference value from user provided preference file.

arguments functionName returns
fileName setPreferenceFileName() void
context, key, defaultValue getString() String
context, fileName, key, defaultValue getString() String
context, key, defaultValue getInt() int
context, fileName, key, defaultValue getInt() int
context, key, defaultValue getBoolean() boolean
context, fileName, key, defaultValue getBoolean() boolean

APK

AppManager

for performing app related operation.

arguments functionName returns
context, packageName launch() void
activity, requestCode, packageName uninstall() void

ApkParser

for parsing apk info.

arguments functionName returns
context, packageName getAppInfo() ApkInfo
context getAllInstalledAppInfo() List