All I want to know is find out path of all APKs in an android device. How can I find taht. Any API to do that?
Asked
Active
Viewed 83 times
1 Answers
1
List<ApplicationInfo> PackageManager.getInstalledApplications() // will give you a list of the installed applications, and
ApplicationInfo.sourceDir //is the path to the .apk file.
PackageManager pm = getPackageManager();
for (ApplicationInfo app : pm.getInstalledApplications(0)) {
Log.d("PackageList", "package: " + app.packageName + ", sourceDir: " + app.sourceDir);
}
Check this link - how to find my android application's storing path of apk file
Community
- 1
- 1
Kanak Sony
- 1,937
- 1
- 23
- 37