Skip to main content
Inspiring
Jan 3, 2012 12:12 AM UTC
Question

Invoking "Open with..." for a file (Android, iOS - ANE?)

Hi.

I would like to open a file with registered handlers on a mobile system, and I'm wondering, is there a way to do this in AIR for mobile?

I've tried using URI schemes, but that does not work... File.openWithDefaultApplication() does not work on mobile systems 😕😕

Any ideas?

This topic is closed to new replies. Start a new post to keep the conversation going.

19 replies

Participant
Jul 20, 2015 2:26 PM UTC

I'm trying to invoke "open with..." for a .csv file in iOS and android.

What ANE's have worked well for you guys?

Translate
itlancer
Inspiring
Oct 9, 2014 7:31 PM UTC
Participating Frequently
Jan 31, 2014 12:28 AM UTC

I purchased the great DocLauncher ANE from

http://activeden.net/item/document-launcher-native-extension-for-android/2015733

The author claims it works with ANY file extension.

I included it in my Android app mostly for making it easy for my users to install the Flash Player no longer available on the Play Store. It worked right off the bat. The best $7 I have spent in a long time.

For videos only you can use the free VideoManager ANE from FlashVisions

http://flashvisions.com/air/videomanager-native-extenson-for-android-browseforvideo-and-native-plaback-enabled/

I use it for launching RTSP and MMS video streams with a native app. it works great.

No idea if it works for the iPhone.

Translate
Jan 3, 2012 2:18 PM UTC

Not sure if this is any use to you but thought I would post it anyway.

http://www.flex-blog.com/reading-writing-files-in-adobe-air/

Translate
Innovatology
Participating Frequently
Jan 3, 2012 2:38 PM UTC

Alas, this is an entirely different topic. The original poster wanted a way to open a file with the associated app, i.e. the File.openWithDefaultApplication() function. That is available on desktop and on PlayBook, but not on Android or IOS.

Translate
er453rAuthor
Inspiring
Jan 3, 2012 3:50 PM UTC

From my research it seems it is not possible...

I will try to write ANE for Android and iOS and post the results.

Reading: http://www.splashdust.net/2011/07/how-to-open-a-pdf-in-a-external-viewer-from-a-air-app-running-on-android/

Translate