In the code below the list apps does not contain all the apps installed.
"com.ecartek.en.kd" definately exists but is not returned in the list.
Am I doing something wrong? It does return 300 odd other apps
Dim pm As PackageManager
Dim apps As List
apps.Initialize
apps = pm.GetInstalledPackages
If apps.IndexOf("com.ecartek.en.kd") > -1 Then
lst1i.Add("Launch KeyDIY App")
End If
Note: If your app targets Android 11 (API level 30) or higher, the methods in this class each return a filtered list of apps. Learn more about how to manage package visibility.
Google Play restricts the use of high-risk or sensitive permissions, including the QUERY_ALL_PACKAGES permission, which gives visibility into the inventory of installed