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