Cor, Erel - thanks for your replies!
I have looked up the package manager documentation and modified some presented source code, so I get now a complete list of installed apps with this:
Dim pm As PackageManager
Dim packages As List
packages = pm.GetInstalledPackages
For i = 0 To packages.Size - 1
Log("-------------------------------------------------")
Log(packages.Get(i))
Log(pm.GetApplicationIntent(packages.Get(i)))
Log(pm.GetApplicationLabel(packages.Get(i)))
Next
As a result I see somehting like this in the LOG output:
com.google.android.apps.m4ps
Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.google.android.apps.m4ps/com.google.android.maps.MapsActivity }
Maps
Unfortunately the type of information I was looking for (ex. "googlemaps") doesn't seem to be provided by package manager either. I was hoping to get a list of these simplified labels/descriptors, so that I can simply launch an app like GoogleMaps hoping that this type of information doesn't change across the different Android releases or languages. I understand I could search for package recursively according to the 'Label' provided by PackageManager but then the label (= name displayed on desktop - right?) would need to be the same across all versions and languages. I think this is often not the case.
Having read 200+ blogs on search terms 'intent', 'startactivity' and now 'packagemanager' I still don't see the exact solution. Thanks to your hints I can verify the existence of a certain package or just ignore the error (catch exception) but I try to identify securely the corresponding target app for a certain file type (therefore my question for MIME).
I have also tried to use Intent1.SetType(MIME) but it seems it doesn't work with ACTION_MAIN but only with ACTION_VIEW. ACTION_VIEW will launch the fitting program for a certain MIME but then also play/show the stated file. I do not need to play/show a certain file (don't have one), I just want to open program corresponding to the file type. User will then decide what to play/show etc.:sign0137:
Any thoughts how to find the program?