开发者

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

I'm currently trying to open a downloaded file (.txt e.g.) on Android (2.2) programmati开发者_Go百科cally 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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜