A apty Active Member Licensed User Longtime User Oct 5, 2016 #1 I am trying to list only apps that can be launched but the list gives me all apps including those that cannot be launched. My code is as below Code: Dim pm As PackageManager Dim packages As List packages = pm.GetInstalledPackages For i = 0 To packages.Size - 1 If pm.GetApplicationIntent(packages.Get(i))<> Null Then lsall.AddSingleLine(pm.GetApplicationLabel(p)) End If what am i doing wrong?
I am trying to list only apps that can be launched but the list gives me all apps including those that cannot be launched. My code is as below Code: Dim pm As PackageManager Dim packages As List packages = pm.GetInstalledPackages For i = 0 To packages.Size - 1 If pm.GetApplicationIntent(packages.Get(i))<> Null Then lsall.AddSingleLine(pm.GetApplicationLabel(p)) End If what am i doing wrong?
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2016 #2 What is the output of Log(pm.GetApplicationIntent(...)) for the apps that cannot be launched? Upvote 0
A apty Active Member Licensed User Longtime User Oct 5, 2016 #3 Thanks..i decided to list only non-system apps. Upvote 0
DonManfred Expert Licensed User Longtime User Oct 5, 2016 #4 https://www.b4x.com/android/forum/threads/issystemapp.48661/ Upvote 0