App Management
GoToApp
Open specified app.
Parameter | Description |
packageName | App package name |
CloseApp
Kill the process of the specified app.
Parameter | Description |
packageName | App package name |
StartAppWithExtra
Start activity with extras, the keys should correspond with values.
packageName | App package name |
className | full class name |
key | array of all keys |
value | array of all values |
StartAppWithAction
Start activity by action.
Parameter | Description |
action | full string of intent action |
InstallApk
Install apk silently.
Parameter | Description |
apkPath | Apk file path. |
successCallback | Callback when install successfully. User can use this method to get install successful event. The callback is called in the thread of user called InstallApk if calling thread has an Android Looper, otherwise called in the main thread. |
errorHandler | Callback when install failed. |
Prototype for OnPackageInstallSuccessHandler
Prototype for OnPackageInstallErrorHandler
UninstallApk
Uninstall specified app.
Parameter | Description |
packageName | App package name. |
successCallback | Callback when uninstall successfully. |
errorCallback | Callback when uninstall failed. |
Prototype for OnPackageUninstallSuccessHandler
Prototype for OnPackageUninstallErrorHandler
GetInstalledAppList
Get installed app package name list, include system apps and un-system apps.
Parameter | Description |
onlyLauncher | only apps have launcher |
GetAppNameByPackageName
Get app name by package name.
Parameter | Description |
packageName | App package name |
GetAppIconByPackageName
Get app icon byte array by package name.
Parameter | Description |
packageName | App package name. |
ShowControllerBindPage
Intent to bind controller page in launcher.
Last updated