Codenameone:共享文件导致空的target-app-selection-Dialog

时间:2020-03-17 08:28:58

标签: codenameone

我尝试使用共享API从我的代号应用程序中共享文件(zip或文本-我都对它们进行了测试)。但是在我的iOS设备(带有iOS 13.3.1的iPhone和iPad)上,结果是该对话框为空(可以选择要与之共享文件的应用程序)(请参见屏幕截图)。

我将此调用用于文本文件

Display.getInstance().share(null, "file:///var/mobile/Containers/Data/Application/0999760A-D194-450D-8E27-B0D5D852FB93/Documents/de.zeitkuenstlervoll.gtd.gui/mylog.txt", "text/plain");

这是zip文件:

 Display.getInstance().share(null, "file:///var/mobile/Containers/Data/Application/0999760A-D194-450D-8E27-B0D5D852FB93/Documents/de.zeitkuenstlervoll.gtd.gui/export.zip", "application/octet-stream");

文件是使用FileSystemStorage编写的,并且始终存在于路径中(使用代码中的附件作为附件创建电子邮件效果很好)。与share-API共享文本效果很好(选择对话框不为空)。

您知道我可以怎样共享文本文件或zip吗?

Screenshot empty target-selection-dialog

0 个答案:

没有答案