Skip to main content
Inspiring
January 3, 2012
Question

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

  • January 3, 2012
  • 4 replies
  • 7573 views

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 has been closed for replies.

4 replies

Participant
July 20, 2015

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

What ANE's have worked well for you guys?

itlancer
Inspiring
October 9, 2014
Participating Frequently
January 31, 2014

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.

January 3, 2012

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/

Innovatology
Participating Frequently
January 3, 2012

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.

er453rAuthor
Inspiring
January 3, 2012

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/