List of utility methods to do APK Information Get
int | getAppVersionCode(Context context) get App Version Code PackageInfo appPackage = getAppPackage(context);
return appPackage.versionCode;
|
String | getAppVersionName(Context context) get App Version Name PackageInfo appPackage = getAppPackage(context);
return appPackage.versionName;
|
Drawable | getApkIcon(Context context, String apkPath) get Apk Icon PackageManager pm = context.getPackageManager(); try { PackageInfo info = pm.getPackageArchiveInfo(apkPath, PackageManager.GET_ACTIVITIES); if (info != null) { ApplicationInfo appInfo = info.applicationInfo; appInfo.sourceDir = apkPath; appInfo.publicSourceDir = apkPath; ... |