Android Question how can get apk file icon

khosrwb

Active Member
Licensed User
Longtime User
I will build file manager
I will find apk icon and show it for apk file
this apk file ( application ) isn't install
there is a way?

I know this :
packagemanager
but my probllem is this : I haven't package
there is a way to find package name? ( for uninstalled app _ this app is in sd card)
 

khosrwb

Active Member
Licensed User
Longtime User
thanks DonManfred
but I will find app icon (( not installed app ))
in this link , we can find installed app icon and we can find app icon when we have app package name .
I haven't package name . there is a way to find packge name (( not installed app ))

B4X:
Private Sub ShowInstalledApps
   Dim pm As PackageManager  'phone library
   For Each pck As String In pm.GetInstalledPackages
     pm.GetApplicationLabel("packagename")
     Log(name)
   Next
End Sub
 
Upvote 0
Top