| 类 | 说明 |
|---|---|
| DensityUtil | |
| GestureHelper | |
| GestureHelper.OnFlingListener | |
| InputMethodUtil | |
| LoadingUtil |
Created by tjianli on 15/8/11.
|
| LogUtil | |
| NetWorkUtil |
NetWork Utils
Attentions
You should add android.permission.ACCESS_NETWORK_STATE in manifest, to get network status.
|
| PackageUtil |
PackageUtils
Install package
PackageUtils#installNormal(Context, String)
PackageUtils#installSilent(Context, String)
PackageUtils#install(Context, String)
Uninstall package
PackageUtils#uninstallNormal(Context, String)
PackageUtils#uninstallSilent(Context, String)
PackageUtils#uninstall(Context, String)
Is system application
PackageUtils#isSystemApplication(Context)
PackageUtils#isSystemApplication(Context, String)
PackageUtils#isSystemApplication(PackageManager, String)
Others
PackageUtils#getInstallLocation() get system install location
PackageUtils#isTopActivity(Context, String) whether the app whost package's name is packageName is on the
top of the stack
PackageUtils#startInstalledAppDetails(Context, String) start InstalledAppDetails Activity
|
| ParcelUtil |
ParcelUtils
|
| PreferencesUtil |
PreferencesUtils, easy to get or put data
Preference Name
you can change preference name by
PreferencesUtil.PREFERENCE_NAME
Put Value
put string PreferencesUtil.putString(Context, String, String)
put int PreferencesUtil.putInt(Context, String, int)
put long PreferencesUtil.putLong(Context, String, long)
put float PreferencesUtil.putFloat(Context, String, float)
put boolean PreferencesUtil.putBoolean(Context, String, boolean)
Get Value
get string PreferencesUtil.getString(Context, String), PreferencesUtil.getString(Context, String, String)
get int PreferencesUtil.getInt(Context, String), PreferencesUtil.getInt(Context, String, int)
get long PreferencesUtil.getLong(Context, String), PreferencesUtil.getLong(Context, String, long)
get float PreferencesUtil.getFloat(Context, String), PreferencesUtil.getFloat(Context, String, float)
get boolean PreferencesUtil.getBoolean(Context, String), PreferencesUtil.getBoolean(Context, String, boolean)
|
| ScreenUtil | |
| SerializeUtil |
Serialize Utils
|
| ShellUtil |
ShellUtils
Check root
ShellUtils#checkRootPermission()
Execte command
ShellUtils#execCommand(String, boolean)
ShellUtils#execCommand(String, boolean, boolean)
ShellUtils#execCommand(List, boolean)
ShellUtils#execCommand(List, boolean, boolean)
ShellUtils#execCommand(String[], boolean)
ShellUtils#execCommand(String[], boolean, boolean)
|
| ShellUtil.CommandResult |
result of command
ShellUtil.CommandResult.result means result of command, 0 means normal, else means error, same to excute in
linux shell
ShellUtil.CommandResult.successMsg means success message of command result
ShellUtil.CommandResult.errorMsg means error message of command result
|
| ToastUtil |
|