AIR - Open files on Android (openWithDefaultApplication() alternative)

霸气de小男生 提交于 2019-12-20 01:50:33

问题


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

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

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?

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

Thanx in advance.

Regards, /dley


回答1:


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.

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



来源:https://stackoverflow.com/questions/5298302/air-open-files-on-android-openwithdefaultapplication-alternative

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!