ActivityViewController allows the user to share data from your app using the standard share dialog. It was added in iPhone library v2.00. Using it is simple. You need to initialize AVC with one or more items that you want to share and call show: Sub Page1_Click Dim avc As...
www.b4x.com
But I have problems with iOS 14, it doesn't appear the window to send data. Any idea?
The Show method of the ActivityViewController should point to a button (instead of a panel) to work properly on iPads. You can either use an existing button on your page or create a new one (I used a special button without text or function and with a transparent background color).
B4X:
Dim avc As ActivityViewController
Dim files As List
files.Initialize
files.Add(CreateFileUrl(tersShareDirectory, sFilenameGPX))
files.Add(CreateFileUrl(tersShareDirectory, sFilenamePLFTER))
avc.Initialize("avc", files)
avc.Show(PageMapList, btnACV)
Just checked on an iPad with iOS 14.2 and it still works: