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?
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/
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.
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.
Copy link to clipboard
Copied
have you managed to create a native extension for ios ?
Copy link to clipboard
Copied
@er453r Did you succeed in creating the ANE ?
Thanks
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.
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.
Copy link to clipboard
Copied
For those looking for an iOS solution, as anyone tried this one?
Copy link to clipboard
Copied
This looks promising, I will test later today
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.
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.............
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.
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
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.
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.
Copy link to clipboard
Copied
Believe I had one custom developed, I will need to go back and look...
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
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.
Copy link to clipboard
Copied
Feature request for this issue: Feature#3836880 - [New_Feature_Requirement] [Android] [iOS] Invoking "Open with..." for a file by Fi...
Copy link to clipboard
Copied
I'm trying to invoke "open with..." for a .csv file in iOS and android.
What ANE's have worked well for you guys?