-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
Abid Ali edited this page Feb 4, 2018
·
1 revision
This library consist of various helpers/utility as mentioned below:
To validate various java objects.
| arguments | functionName | returns |
|---|---|---|
| String | validateEmail() |
boolean |
| Various java object | isEmpty() |
boolean |
| Various java object | isNotEmpty() |
boolean |
To perform action output app context.
| arguments | functionName | returns |
|---|---|---|
| context, packageName | openInStore() |
void |
| context , emailId, subject, chooserTitle | sendEMail() |
void |
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 |
To get android software information.
| arguments | functionName | returns |
|---|---|---|
| no argemnts | getAndroidName() |
String |
To get wifi related information.
| arguments | functionName | returns |
|---|---|---|
| context | isConnected() |
boolean |
| context | getCurrentSignalStrength() |
int |
| context | getCurrentSignalQuality() |
int |
| context, qualityLevel | getCurrentSignalStrength() |
int |
| context | getCurrentFrequency() |
int |
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 |
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 |
for performing app related operation.
| arguments | functionName | returns |
|---|---|---|
| context, packageName | launch() |
void |
| activity, requestCode, packageName | uninstall() |
void |
for parsing apk info.
| arguments | functionName | returns |
|---|---|---|
| context, packageName | getAppInfo() |
ApkInfo |
| context | getAllInstalledAppInfo() |
List |