iOS Question launching an external app from within b4i

Discussion in 'iOS Questions' started by Petertsgtongerlo, Jun 14, 2018.

  1. Petertsgtongerlo

    Petertsgtongerlo Member Licensed 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 :

    If VerbindenMetInternet = "Ja" Then
                    StartApp = pm.GetApplicationIntent (
    StartActivity (StartApp)    
                    WifiAntwoord = 
    Msgbox2("Installeren?""Maestro app niet geïnstalleerd!""Ja""""Nee"LoadBitmap (File.DirAssets, "maestrologo.png"))
    If WifiAntwoord = DialogResponse.Positive Then      
    End If
    End Try
    End If
    Last edited: Jun 14, 2018
  2. Erel

    Erel Administrator Staff Member Licensed 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.
  3. Petertsgtongerlo

    Petertsgtongerlo Member Licensed User

    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?
  4. Erel

    Erel Administrator Staff Member Licensed User

    No. There is no relation between the Android package name and the app url scheme. If that app hasn't registered a custom url, which you cannot guess, then you cannot start it.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice