Android Question Get Package Name, Version and Icon from an APK in my SD card

FabioG

Active Member
Licensed User
Longtime User
Hello,

how can I get the package Name, Version and Icon from APK of my SD Card?

unfortunately this is not possible with the library PackageManager

Who can help me?

Thank you
 

JohnK

Active Member
Licensed User
Longtime User
I am guess ing this "hack" I am suggesting below is not the true Android way, but, an APK is a zip file. If you unzip the APK, you could probably read the package name from the contained manifest XML and get the icon from the contents as well.
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
I believe that is not the easiest when the device has many apk
and must create a list with them

There will be some code that allows to do this
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
Thanks!

then it is sure that there are no other solutions?
I see a lot of apps that generate a list very quickly

maybe a Java code?
 
Upvote 0
Top