• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Explorer ,
Jan 02, 2012 Jan 02, 2012

Copy link to clipboard

Copied

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?

TOPICS
Development

Views

7.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 03, 2012 Jan 03, 2012

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 03, 2012 Jan 03, 2012

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 03, 2012 Jan 03, 2012

Copy link to clipboard

Copied

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-a...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 29, 2012 Aug 29, 2012

Copy link to clipboard

Copied

have you managed to create a native extension for ios ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 02, 2013 Jul 02, 2013

Copy link to clipboard

Copied

@er453r Did you succeed in creating the ANE ?

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 04, 2013 Nov 04, 2013

Copy link to clipboard

Copied

Did you ever find an ANE for this?  I am looking for a solution to also do this to move files to Dropbox if installed.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2013 Nov 05, 2013

Copy link to clipboard

Copied

Using an extention like this one http://www.as3gamegears.com/air-native-extension/share/ will do the job on Android if Dropbox is installed. No solution for iOS yet though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 05, 2013 Nov 05, 2013

Copy link to clipboard

Copied

For those looking for an iOS solution, as anyone tried this one?

https://github.com/katopz/ane-device-file-util

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 05, 2013 Nov 05, 2013

Copy link to clipboard

Copied

This looks promising, I will test later today

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 06, 2013 Nov 06, 2013

Copy link to clipboard

Copied

Anyone else get this working?  I tried the app it was used in and it works but I get the error: Error #1009: Cannot access a property or method of a null object reference when I try to call it.  I think the file path is not resolving correctly but I simply created a txt in the docs directory and tried to call it but no success.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 07, 2013 Nov 07, 2013

Copy link to clipboard

Copied

Hello All,

i am working on a chat application in Flex 4.6, i am downloading image & video files from web server & saving them in documents directory on android & ios.

i am showing those files listing in my application in List view. now i want that when a user click on any file in List View than that file should open in Android & IOS default handler.

i have found a ANE for android & it's working fine in android.

but i didn't find any solution for IOS. i searched google a lot but didn't find any ANE for IOS which can open file in IOS default handlers.

so please tell me any solution for this problem as soon as possible.

Thanks.............


http://stackoverflow.com/q/19831780/2963936

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 07, 2013 Nov 07, 2013

Copy link to clipboard

Copied

Update to my post, I was able to actually get the above ANE for IOS to work.  I can now share to dropbox, gdrive etc...

On the Android side, I used a different ANE.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 07, 2013 Nov 07, 2013

Copy link to clipboard

Copied

hello mola2alex,

is this ANE work for Image, video & audio files???????

because i need to open image, video & audio files only.....................

please reply as soon as possible............

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 07, 2013 Nov 07, 2013

Copy link to clipboard

Copied

I believe it is any file.  I tried it with a text file but the guy who made it uses it for any file.  In his app, you can share and download files in a p2p manner and then ability to share.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2013 Nov 27, 2013

Copy link to clipboard

Copied

i tested the ios ane at: https://github.com/katopz/ane-device-file-util

i tested with audio, images, and pdf - it worked fine.

what ane are you using for android?

cheers.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 27, 2013 Nov 27, 2013

Copy link to clipboard

Copied

Believe I had one custom developed, I will need to go back and look...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 30, 2014 Jan 30, 2014

Copy link to clipboard

Copied

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-plaba...

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 09, 2014 Oct 09, 2014

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2015 Jul 20, 2015

Copy link to clipboard

Copied

LATEST

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

What ANE's have worked well for you guys?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines