Dim avc As ActivityViewController
avc.Initialize("avc", Array("Test"))
avc.Show(B4XPages.GetNativeParent(Me), Button1) 'Second parameter is relevant for iPad only. The arrow will point to the view.
'avc.Show(B4XPages.GetNativeParent(Me), Root) '<---- B4XPages equivalent code
Wait For avc_Complete (Success As Boolean, ActivityType As String)
Log($"Success: ${Success}, ActivityType: ${ActivityType}"$)