private Sub b4xpage_appear
#if calling
xui.MsgboxAsync("Click on the button to start the second app","")
#else if callee
xui.MsgboxAsync("I am the second app.","")
#End If
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub Button1_Click
#if calling
If Main.App.CanOpenURL("uk.co.digitwell.app2://") Then
Main.App.OpenURL("uk.co.digitwell.app2://")
End If
#else if callee
xui.MsgboxAsync("Start the other app","")
#end if
End Sub