iOS Question launching an external app from within b4i

Petertsgtongerlo

Member
Licensed User
Longtime User
In my b4a app after clicking a certain button it checks or schoolmaster maestro is already installed, if not, it asks whether it must be installed, if so, it is being installed ans started.

Here's my B4a code, can anyone tell me what a similar code must be in B4i :

B4X:
  If VerbindenMetInternet = "Ja" Then
            Try  
                StartApp = pm.GetApplicationIntent ("nl.schoolmaster.amaestro")  
                StartActivity (StartApp)    
                  Catch
                WifiAntwoord = Msgbox2("Installeren?", "Maestro app niet geïnstalleerd!", "Ja", "", "Nee", LoadBitmap (File.DirAssets, "maestrologo.png"))
                If WifiAntwoord = DialogResponse.Positive Then      
                    InstalleerApp.Initialize(InstalleerApp.ACTION_VIEW,"market://details?id=nl.schoolmaster.amaestro")
                    StartActivity(InstalleerApp)
                End If
            End Try
        End If
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

You cannot start other apps unless they registered a unique url scheme. This is not something that you can find programmatically. You need to look for it in their documentation.

If they do provide a unique scheme then you can also check whether it is installed or not.
 
Upvote 0

Petertsgtongerlo

Member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

You cannot start other apps unless they registered a unique url scheme. This is not something that you can find programmatically. You need to look for it in their documentation.

If they do provide a unique scheme then you can also check whether it is installed or not.

so the code in b4i is the same as in b4a as I added before in this post (without quotes, sorry for that)?
I used "nl.schoolmaster.amaestro" in b4a, this works, so I can use this in b4i also I presume?
 
Upvote 0
Top