Android Air - Access app files via native extension?

I've tried to use several video ANEs, they load video outside of the app fine, but if I try to provide a video that was packaged into the APK file they can't seem to access it. I have no experience developing native extensions or android apps, only AS3/AIR for android.
var localFile:File = File.applicationDirectory.resolvePath("video.mp4")
File.url traces "app:/video.mp4". The ANEs don't appear to be doing anything when given that path, searching the internet I found the path to the asset is in APK assets folder. And to use "file:///android_asset/video.mp4", this gets a response from the native media player via the ANEs but I get a dialog saying it was unable to play the video, the asset file name doesn't have to be a valid asset to trigger that dialog and the video asset itself does play on the device if I copy it over and play it out of the air app. I've read that the assets folder in the APK file can be compressed which is causing the problem.
I'm not sure how to approach this? Is it possible with AIR to have android access the APK's assets?

Hi,
I've been investigating the issue trying to get access to video files packaged in an AIR app from an ANE but they are sometimes compressed in the APK rather than just being stored. Once they are compressed you get the following error:
java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
I think this has to be an error in the AIR packaging, as they shouldn't be compressed. Any files like mp3, mp4, png etc shouldn't be compressed according to the Android packager.

Similar Messages

  • Error 112: The AIR target doesn't support native extensions

    I have been developing an AIR app in Flash Builder.  I recently created an ANE (Air Native Extension) for FMOD and linked it with my AIR app.  ADT user-unfriendliness aside, I got it working.
    When I try to update my Ant build script to package the ANE files with my AIR project, ADT complains:
    My-App-Descriptor-Name.xml: error 112: The AIR target doesn't support native extensions.
    This comes as a surprise to me, because I've been compiling and developing the AIR app in Flash Builder with the ANE extensions.  It also doesn't make sense, because I packaged my ANE with platform specific libraries for multiple platforms (Windows and MacOs), so when the AIR app runs on these platforms, it should work.  However, this aside, my main point is:
    How the heck does this work in Flash Builder if AIR targets do not support ANE?  What is Flash Builder doing, exactly, when I Run or Debug an AIR app with ANEs?
    Thanks!
    JW

    hi I have the same issue while publishing my app app.xml: error 112: The AIR target doesn't support native extensions. plz help

  • HT1145 I can't see my files on my USB shared drive.  It shows there is lots of space taken up, but I can't access the files via my Mac.

    I can't see my files on my USB shared drive.  It shows there is lots of space taken up, but I can't access the files via my Mac.  How do I see them?  I also can't see them on my iPad using FileBrowser.

    You don't have access to it to configure it via Time Machine? You lost me on that one, Time Machine is used for Backup.
    Here is a basic article on the first setup and what you should see:
    http://support.apple.com/kb/HT1178
    To configure Time Capsule you should be using "Airport Utility" 5.3 or higher that is located in the Utilities folder. You can tell if its version 5.3 because the icon will have blue lines instead of orange lines like the older versions. Since you are running Leopard 10.5.6 and you ran Software Update you are probably already running the latest 5.3 version.
    The light flashing amber means you haven't entered enough information so that it can get to the internet. Once you have that info entered the light will turn green.
    If your absolutely sure your CAT5 cables are good you can try a hard reset. I think you have to push the reset button on the back and hold it for 5 seconds or so until the amber light blinks rapidly, then when you release the button it does the reset then.
    http://support.apple.com/kb/HT1300?locale=en_US
    Hope this helps! If not I would probably call AppleCare support or see if you can exchange it.
    -Dan

  • Accessing playbook files via BB desktop

    Since installing the upgrade 2.01 on my playbook, I cannot access the files on my playbook via the desktop software. I'm also getting an update notice for the OS every time I connect with the Desktop software in spite of the fact that it's already installed.  HELP!!

    dfm0506 wrote:
    Since installing the upgrade 2.01 on my playbook, I cannot access the files on my playbook via the desktop software. I'm also getting an update notice for the OS every time I connect with the Desktop software in spite of the fact that it's already installed.  HELP!!
    Restart the Playbook (touch the battery icon, Restart).
    Then, touch the options icon at top right > Software Updates... do you get any update notification?
    If not, you're fine. The desktop notification you can ignore, you probably deleted something "core" to the update, which it thinks it needs to reinstall.
    You can use WiFi media transfer to move files between your PC and PlayBook if you want.. have you tried that?
    Article ID: KB26068 How to transfer files to and from the BlackBerry PlayBook
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Access recieve files via bluetooth in download folder

    hi guys,i just did a fresh install of my system arch 64 and before i wiped my system i remember in the downloads folder at the top there was a line that when i clicked on it,a new screen popped up with the bluetooth settings like an option to recieve files from any device or trusted devices,does anyone know how to get it back i don't have it now,before i wiped reinstalled i didn't have installed blueman,or bluedevil what i had installed was gnome-bluetooth,opexfs,bluez, gvfs-obexftp and also i used to be able to browse the files on my phone and now i can't do that now,to recieve files from my phone i had to install blueman becaquse i can't do that either,but i want to remove it and keep gnome-bluetooth
    Last edited by karantani (2012-01-08 06:51:21)

    For some reason PC suite dont have that option to see inbox messages received via bluetooth would be better if it comes in the future PC suite updates only way to see it to open and save those files on to your phone and access it using file manager, also its easy too
    Message Edited by krizanand on 24-Sep-2009 06:51 PM
    If a reply has solved your problem click Accept as solution button, doing it will help others know the solution. Thanks.

  • How to access a file via Applet and JavaScript

    I want to copy one file on the client machine from one place to another place from a Java Bean.
    To do this I created an applet and a Java Bean as follows:
    import java.applet.*;
    public class FileUtils extends Applet {
        public void copyFile(String src, String dest)  {
        private String source, destination; // setters/getters are there of course
        public void copyFile(ActionEvent actionEvent) { // Bean
            FacesContext fctx = FacesContext.getCurrentInstance();
            ExtendedRenderKitService erks = Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
            String command = "var s = '"+ source +"'; var d ='" + destination +"'; " +  " document.fileUtilsApplet.copyFile(s, d); ";
            erks.addScript(fctx, command);
        }Then I added the APPLET tag referencing the above class in the page fragment:
                    <f:verbatim>
                        <applet code="FileUtils.class" name="fileUtilsApplet" height="30"
                                archive="/context-root/Applet.jar"
                                width="200">
                        </applet>
                    </f:verbatim>From the Java console I can see the jar is successfully downloaded, but when the code in the bean is executed, the JavaScript code does not seem to do anything, as if the "copyFile" public method was not called at all and no output in the Java Console as well.
    Note that I already followed the guidelines at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdf .
    Do you have any ideas?

    Ok, I can see the permission problem now:
    java.security.AccessControlException: access denied (java.io.FilePermission c:\myfile.txt read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
    Edited by: user10047839 on 1-feb-2013 7.29
    signing the Jar and downloading the certificate permanently does not change anything in Firefox. The Java console keeps giving the above exception.
    Any idea?

  • Actionscript 3 - Air and Native Extensions?

    I have a Flash AS3 app that I want to run on android phones via AIR.  Can I use native extensions?  If so, how can I include the .ane files?  To reiterate, I just have a regular Flash + AS3 project- not a mobile project.  I'm not doing anything with XML.  Anyone have an answer to this?
    Thanks!

    you include the ane file by clicking file>publish settings>swf>advanced actionscript settings (the wrench icon)>library path>browse to an ane file (4th or 5th icon at the top of the library path panel).

  • AIR Native Extension - Java

    I'm sorry if this is not the best forum to post on this topic.  I will glady accept a redirect to whichever Adobe product group can best reply.
    The topic is AIR.  The topic is Native Extensions.
    The questions are:
    A.  Why is the ability to call between Actionscript and a Java Runtime limited to the Android platform?  What stands in the way of using that same gateway to a JRE running on my desktop, whether that be Windows or MacOS?
    B.  We desperately need first-class search engine support for AIR Desktop applications.  I am sure I am not the only one who sees that:
       a.  The Actionscript Lucene project dried up long ago.
       b.  There seems to be a robust C++ version, but if we were C++ developers we would never have spent that decade developing with Java.
       c.  Nothing could be more natural than wedding Lucene to AIR applications by usng the ANE to cobble the Lucene calls into our applications.  We have wonderful Actionscript-Java object sharing across the networkd, that same binding must be valid on the desktop.
    I am volunteering to do the gruntwork if someone will explain why all the documentation on developing an ANE when the cooperating side is Java says that it can only be done if the target platform is some silly little telephone instead of great big corporate data centers.

    I'm sorry if this is not the best forum to post on this topic.  I will glady accept a redirect to whichever Adobe product group can best reply.
    The topic is AIR.  The topic is Native Extensions.
    The questions are:
    A.  Why is the ability to call between Actionscript and a Java Runtime limited to the Android platform?  What stands in the way of using that same gateway to a JRE running on my desktop, whether that be Windows or MacOS?
    B.  We desperately need first-class search engine support for AIR Desktop applications.  I am sure I am not the only one who sees that:
       a.  The Actionscript Lucene project dried up long ago.
       b.  There seems to be a robust C++ version, but if we were C++ developers we would never have spent that decade developing with Java.
       c.  Nothing could be more natural than wedding Lucene to AIR applications by usng the ANE to cobble the Lucene calls into our applications.  We have wonderful Actionscript-Java object sharing across the networkd, that same binding must be valid on the desktop.
    I am volunteering to do the gruntwork if someone will explain why all the documentation on developing an ANE when the cooperating side is Java says that it can only be done if the target platform is some silly little telephone instead of great big corporate data centers.

  • Has anyone anywhere managed to get "AIR Native Extensions" to work with Flash CS 5.5?

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5.
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html
    Apparently, one has to use the somewhat crude "ADT" command-line tool to build an app that uses Native Extensions.
    Unfortunately, I cannot get past the numerous errors ADT is throwing at me.  The latest is:
    unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:62)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:556)
              at com.adobe.air.ADT.run(ADT.java:413)
              at com.adobe.air.ADT.main(ADT.java:463)
    Unfortunately, I'm not an advanced developer, so I really don't know what any of that means. (But I'm sure if I can just get this one example to compile and run, I'll be better able to perform the necessary tasks in the future.)
    Can someone PLEASE help me?
    Thanks.
    Mike

    If you are looking for input from others, you are more likely to find people with either similar problems or complaints in the Flash General Forum (http://forums.adobe.com/community/flash/flash_general?view=discussions) rather than here in the Actionscript 3 forum.  If you scan thru it for the past few weeks/months you might even find someone with the same problem.

  • Utilizing AIR Native Extensions in Flash Pro CS5.5

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5.
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/g yroscope.html
    Apparently, one has to use the somewhat crude "ADT" command-line tool to build an app that uses Native Extensions.
    Unfortunately, I cannot get past the numerous errors ADT is throwing at me.  The latest is:
    unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.j ava:62)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:556)
              at com.adobe.air.ADT.run(ADT.java:413)
              at com.adobe.air.ADT.main(ADT.java:463)
    Unfortunately, I'm not an advanced developer, so I really don't know what any of that means. (But I'm sure if I can just get this one example to compile and run, I'll be better able to perform the necessary tasks in the future.)
    Can someone PLEASE help me?
    Thanks.
    Mike

    Joe_suchta, you can follow these steps http://www.youtube.com/watch?v=pwVkK27Nors
    Lucky

  • Ohs - autentication to access file via virtual directories

    10gas rel2
    What is required to get the user to authenticate when accessing static files via a virtual directory ? are there any mod_?? suitable for this?
    I've got mod pl/sql working calling a custom authentication for all dynamic content but how do I deal with static files on the server?
    Your advice is much appreciated
    Thanks
    Pete

    JMApple wrote:
    Thanks for your help so far.
    I followed the 'path' you outlined, taking me to the "iTunes library". When I click on the iTunes library,
    that's not how it's done. I thought you simply want to copy the entire library. if you only want a few songs then do the following. quit itunes. hold option and start itunes. it will offer to choose the library. choose the one on the macbook drive that you've now located. it will open the itunes library of the macbook in itunes. select the songs you want in itunes and drag them to the desktop (or better make a folder on the desktop and drag them there). quit itunes. then option-start itunes again and now choose the itunes library in your home directory on the imac. drop the songs from the folder on the desktop onto itunes in the dock and they will be imported into the library on the imac.

  • Native extension - compiler issue

    Hi,
    First, I compile an iOS app with a native extension developped by ADOBE : http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html#articl econtentAdobe_numberedheader_3
    It's work well
    Then, I made myself the iOS library on xcode. It's OK as well
    Then, I made the ANE file following the tutorial http://custardbelly.com/blog/2011/09/21/air-native-extension-example-ibattery-for-ios/. It's seem OK
    I create my air app with Flash Builder. I load ANE, SWC...everything seem ok
    When I compile my Iphone Application with Flex, there is this error :
    An erreor appears during the application packaging (my translation):
    ld warning: in C:\\Users\\Tony\\AppData\\Local\\Temp\\c6468656-be35-4f05-8d51-0dd54063cefd/libcom.adobe. LEDTorch.a, file is not of required architecture
    Undefined symbols:
      "_ExtFinalizer", referenced from:
          _g_com_adobe_air_fre_fmap in extensionglue.o
      "_ExtInitializer", referenced from:
          _g_com_adobe_air_fre_fmap in extensionglue.o
    ld: symbol(s) not found
    Compilation failed while executing : ld64
    Someone could help me?
    I'm working on this bug for 2 days
    Thanks in advance !
    Emmanuel

    Hi,
    Apparently, the issue  is the following:  (find in the forum of
    http://www.liquid-photo.com/2011/10/28/native-extension-for-adobe-air-and-ios-101/#comment -322
    Apparently X-Code was trying to build NativeAlert.m as Objective-C++ source
    instead of Objective-C source. Silly mistake really. It took starting the
    project over again and trauling through the project settings to figure out
    what was wrong. Oh well, all sorted now.
    But i didn't succeed in setting the project with the corrects parameter.
    Could you help me?
    Thanks in advance
    Regards
    E.Fuchs
    2012/2/10 Saumitra Bhave <[email protected]>
       Re: Native extension - compiler issue  created by Saumitra Bhave<http://forums.adobe.com/people/SaumiB>in
    Mobile Development - View the full discussion<http://forums.adobe.com/message/4198519#4198519>

  • ADL + Flash cs6 + Native extension

    Top of the morning to you.
    I finally got around to trying Flash cs6 with a native extension. I chose the vibration example from Adobe.
    While it works on my android device, I do not know how to test in ADL. When I test movie I get:
    Test Movie terminated.
    The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.adobe.Vibration is not supported for Windows-x86.
    Even with no code at all, just having the ane and swc liked causes this.
    Is there anything I can do besides unlink them when testing movie?
    Thanks

    Its definitely the best way to provide a default AS only implementation in the ANE so that the app using the native extension can fallback to the default AS only implementation if a native library for that platform is not defined.
    We will work towards modifying the extensions available at: http://www.adobe.com/devnet/air/native-extensions-for-air.html

  • AIR iOS app rejected?

    Hi guys,
    I've finished developing my app, live video streaming for iOS, I submitted on apps store but they rejected! (I didn't read the guideline carefully T_T https://developer.apple.com/appstore/resources/approval/guidelines.html)
    3.1: Apps or metadata that mentions the name of any other mobile platform will be rejected
    9.4: Video streaming content over a cellular network longer than 10 minutes must use HTTP Live and include a baseline 64 kbps audio-only HTTP Live stream
    Is there a way to get through? Much appriciate! Thanks!!

    Putiing UIRequiresPersistent Wi-fi should show you the dialog to select an available wi-fi, if present. Now that AIR 3 is releases, you should explore the stageVideo feature for streaming. See http://www.adobe.com/devnet/flashplayer/articles/stage_video.html. Also, with AIR 3, you can use native extensions to find the network information, you don't even need to write the extension yourself , it is available at http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/networkinfo.html.
    Hope this helps.
    Reagrds,
    Sanika

  • App World via Wifi

    I tried to access App World via Wifi only (Radio off), but it shows a message saying "...no sufficient wireless coverage...".
    Why isn't it possible to access App World via Wifi only?
    I would rather use Wifi, than the data plan for obvious reasons, or even the USB connection to my PC.
    Thank you in advance, regards.

    HELLO I HAVE THE SAME PROBLEM MY BLACKBERRY  IS A PEARL 9105 AND NO  WANT TO CONNECT BY WIFI AppWorld BUT NOT LEAVE ME NOW I HAVE A PLAN BEFORE I HAD NO  DATA PLAN and let me CONOCTAR BY THE AppWorld WIFI ..

Maybe you are looking for

  • Navigation (Back/Forward) buttons not working in Firefox

    I'm tring to put together a Browser Based help guide, and for the most part it's working as intended... except for the navigation buttons within the help guide themselves. By that I mean... Those guys. The way I would assume they work is that they pr

  • Cursor with for update clause problem

    Hi all, We are having this problem with Oracle 8.1.7 where in we have a cursor with for update clause. The PL/SQL script used to work fine with Oracle 8.0.5 but is causing problems with Oracle 8.1.7. What the script is ending up doing in 8.1.7 is tha

  • Email photos with info attached - please help

    I have iphoto '09 8.1.2 (424). I want to send photos to my photography teacher with the info attached  ( ISO, f-stop, etc.) Is this possible; what is the process? When I press option + command + i, I can see the info, but I don't know how to attach t

  • Material related condition types

    hello mm gurus, I have created a material and I want to maintain condition records for that material through MEK1 but there are so many condition types. I want to maintain the condition types which are related to material please explain me briefly th

  • HT6147 I Phone 7 update 7.0.6

    How long does this update take?  My screen went back and I'm worried the top on/off button got hit.  I can;t get the screen to come back on.  Even when the phone rings.  Which means I can't answer phone.  When I push the button on the front of the ph