Collection of various utilities for Cordova/Phonegap apps.
window.AndroidUtilities.createDesktopShortcut(successCallback, errorCallback);
window.AndroidUtilities.getApplicationInfo(successCallback, errorCallback)
successCallback will receive application build info through its first parameter. Following properties are available:
- debug
- displayName
- basePackageName
- packageName
- versionName
- versionCode
- buildType
- flavor
window.AndroidUtilities.installApk(fullPath, successCallback, errorCallback)
window.AndroidUtilities.uninstallApk(packageName, successCallback, errorCallback)
window.AndroidUtilities.isApkInstalled(packageName, successCallback, errorCallback)
window.AndroidUtilities.getAudioVolume(successCallback, errorCallback)
successCallback will receive int value between 0 and 100.
window.AndroidUtilities.setAudioVolume(volume, successCallback, errorCallback)
volume is int value between 0 and 100.
cordova plugin add cordova-plugin-android-utilities
- Android