Check if an app is installed?

Inman

Well-Known Member
Licensed User
Longtime User
I want to open the IMDB app with a particular keyword search. I know I can call other apps using intents (whether IMDB app accepts the URI is another issue). But is it possible for me to check if the IMDB app is installed before calling the StartActivity?
 

alfcen

Well-Known Member
Licensed User
Longtime User
Haven't tried it myself, but the PackageManager in the Phone library might help.

Excerpt from B4A Help Viewer:

B4X:
Dim pm As PackageManager
Dim packages As List
packages = pm.GetInstalledPackages
For i = 0 To packages.Size - 1
    Log(packages.Get(i))
Next
 
Upvote 0

rtesluk

Member
Licensed User
Longtime User
Two Methods To Determine Installed Packages

Aug 8 2011
13:55 Hours

Hi

This little app uses TWO methods Phone and Reflector, both of which give similar results.

Ray :sign0087:
 

Attachments

  • ReflectPkgPhone20110807.zip
    12.2 KB · Views: 376
Upvote 0
Top