Well, this is it :)
I would like subject feature be included in 8.0 release.
Showing apk icons in desktop version
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately there are no functions to get apk icons under Windows. The AndroidManifest.xml file is compressed with some unknown method - this file describes which image resource is used for the apk file.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
There is a function to load them:By the way, how are apk icons shown in Android version?
Code: Select all
Drawable icon=null;
try {
PackageInfo pi = packageManager.getPackageArchiveInfo(item.name, 0);
if (pi!=null) {
pi.applicationInfo.sourceDir = item.name;
pi.applicationInfo.publicSourceDir = item.name;
icon = packageManager.getApplicationIcon(pi.applicationInfo);
}
} catch (OutOfMemoryError e) {
icon = null;
} catch (Exception e) {
icon = null;
}
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com