AIR - 在 Android 上打开文件(openWithDefaultApplication() 替代方案) [英] AIR - Open files on Android (openWithDefaultApplication() alternative)

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

问题描述

我目前正在尝试通过 Adob​​e 的 AIR SDK 以编程方式在 Android (2.2) 上打开下载的文件(例如 .txt).

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?

我想应该没有那么难,但是 Adob​​e 知识库中的相关信息很少 ;-)

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

提前谢谢.

问候,/德利

推荐答案

不支持在另一个应用程序中打开文件,但可以使用 http/s、mailto、sms、tel 和市场 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() 替代方案)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆