Package lu.die.foza.SuperAPI
Class FozaAppInstallerJ
java.lang.Object
lu.die.foza.SuperAPI.FozaAppInstallerJ
- Version:
- 1.0
- Author:
- king@62v.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intInstall an existing app which already been installed.static StringconvertResultToString(int installResult) Convert the install result to a readable string, mostly greater than 0 is success, otherwise you can use this api for debug purpose, and can be shown to users for comprehensive.static intinstallAppByPath(String path) Install apk from explorer etc.
-
Constructor Details
-
FozaAppInstallerJ
public FozaAppInstallerJ()
-
-
Method Details
-
cloneApp
Install an existing app which already been installed. Must be installed before, so this method also known as clone application.- Parameters:
packageName- package name like {@value "com.whatsapp"}- Returns:
- install result, greater than 0 then success, otherwise you should convert it to see.
FozaAppInstallerJ.cloneApp("com.whatsapp")
-
installAppByPath
Install apk from explorer etc. And you must give a direct path to install inside. Only support the standard apk file, please verify the file before you use this method.- Parameters:
path- a direct apk path- Returns:
- install result
FozaAppInstallerJ.installAppByPath("/sdcard/1.apk")
-
convertResultToString
Convert the install result to a readable string, mostly greater than 0 is success, otherwise you can use this api for debug purpose, and can be shown to users for comprehensive.- Parameters:
installResult- install result integer- Returns:
- readable string
-