Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private xui As XUI
End Sub
Sub Activity_Create(FirstTime As Boolean)
StartApp
End Sub
Sub StartApp
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_VIEW,"")
Dim pm As PackageManager
Try
Intent1 = pm.GetApplicationIntent ("Start.App.apk")
StartActivity (Intent1)
Catch
xui.MsgboxAsync("Failed to launch app! Is it installed?", "Error")
End Try
End Sub