本文介绍了AIR - 打开文件在Android(openWithDefaultApplication()二选一)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图在Android上打开下载的文件(.txt如)(2.2)编程通过Adobe的AIR SDK。

I'm currently trying to open a downloaded file (.txt e.g.) on Android (2.2) programmatically through Adobe's AIR SDK.

桌面 AIR应用程序有一个名为 File.openWithDefaultApplication()的API; ,它工作正常

On desktop AIR applications there is an API called File.openWithDefaultApplication();, which works fine.

不幸的是这一呼吁的基于Android的设备不工作。

Unfortunately this call doesn't work on Android based devices.

难道你们知道另一种功能来管理这一点 - ?或点我在正确的方向。

Do you guys know an alternative function to manage this - or point me in the right direction?

我想这不可能是那么难,但相关信息是Adobe的知识库安静罕见的; - )

I guess it couldn't be that hard, but the relating information is quiet rare on Adobe's Knowledge Base ;-)

感谢名单提前。

问候,/ dley

Regards,/dley

推荐答案

打开,不支持在其他应用程序的文件,除了可以与HTTP / S,邮寄地址,手机短信,电话,以及市场URI方案推出的文件。您可以启动那些与navigateToURL()函数。

Opening a file in another application is not supported, except for files that can be launched with http/s, mailto, sms, tel, and market URI schemes. You can launch those with the navigateToURL() function.

当然,这也不是很难的AIR应用程序内显示的文本,如果这是你正在做什么。

Of course, it isn't hard to display text inside an AIR app, if that is what you are trying to do.

这篇关于AIR - 打开文件在Android(openWithDefaultApplication()二选一)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 09:36