AS3 AIR accessing Android expansion file

Hello, I have AS3/AIR application for deploying on Google Play. The app has an expansion file attached to it. Expansion file is named "main.1000000.air.com.mycompany.myapp12.obb" and it is downloaded along with the app properly.
The problem is I cannot access the file with any way I tried, like:
File.applicationStorageDirectory.resolvePath('Android/obb/main.1000000.air.com.mycompany.myapp12.obb');
File.applicationStorageDirectory.resolvePath('/Android/obb/main.1000000.air.com.mycompany.myapp12.obb');
File.applicationStorageDirectory.resolvePath('main.1000000.air.com.mycompany.myapp12.obb');
File.applicationStorageDirectory.resolvePath('/main.1000000.air.com.mycompany.myapp12.obb');
or simillar, and I cannot access the file even when the path while developing on Windows seems to be right. When deployed, I just got the "not found" error in my catch block with the supplied File url property: "app-storage:/Android/obb/main.1000000.air.com.mycompany.myapp12.obb". I have been looking for the solution and trying various approaches for several days, but I am stucked. Please help. Developed on ASUS EEE PAD.

I have same problem on my Nexus 7(2012) Android Lillipop
The Aplication can't see the obb file after install - it can find it only after device system reload
but I can see it on such directorys
storage/sdcard0/Android/obb/
storage/emulated/legacy/Android/obb/
storage/emulated/0/Android/obb/
so why aplication can't find it ?

Similar Messages

  • Air on Android - Expansion Files (*.obb)

    Someone ever used it in an AIR app? I'm having problem checking if we downloaded it, and downloading it (what's the Google Play file location?). How to use .zip expansion files?

    I haven't been able to find anything on this from Adobe. Can anyone point us in the right direction for expansion files?

  • Android Expansion Files and License Verification Library

    Hi all,
    I'm strugling with the libraries to verify a person's purchase in order to download play store hosted expansion files.
    I got the downloading of expansionfiles and unpacking (from an own domain) down, but since it is for a purchased application and the .obb files will be stored in the play store, I need to check the purchase before I can download (right?).
    I'm going by the following article:
    http://www.adobe.com/devnet/air/articles/android-licensing-native-extensions.html
    After getting all the latest SDK's (Android and AIR) I still get errors from the Adobe provided .java files.
    First, the package name of Anroid's
    com.android...LicenseChecker.java
    is changed to:
    com.google.android...LicenseChecker.java
    Fine, I can change it's import in com.adobe.air.sampleextensions...AndroidLicenseCheckerCallback.java
    However...
    com.adobe.air.sampleextensions...AndroidLicenseCheckerCallback.java then begins to complain about the method LicenseChecker.allow( int ) not being implemented. OK, I can write that method if need be (not quite clear what to fill it with though)
    Worse probably is that a number of consts ( CHECK_IN_PROGRESS, INVALID_PACKAGE_NAME ) and s'mores can not be resolved. Maybe because the overridden applicationError's parameter ApplicationErrorCode can not be resolved either... .
    (I got android.jar and FlashRuntimeExtensions.jar linked OK)
    sigh...
    Does anyone know of more recent/functioning libraries? Or am I on the wrong track all together?
    Thanks in advance,
    Manno

    [daytime again]
    ofcourse the unresolved consts cannot de defined inApplicationErrorCode.
    Still open for advice though...

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

  • Use html ad banner in as3 AIR

    I am wanting to use an HTML ad banner in my AS3 Air for Android project, here is the html code:
    <a href="http://tracking.raftika.com/aff_c?offer_id=1106&aff_id=1708&file_id=12132&file_id=12166" target="_blank"><img src="https://media.go2speed.org/brand/files/raftika/1106/320x50_150k_ArchersVsCerberus_GEN_EN.g if" width="320" height="50" border="0" /></a><img src="http://tracking.raftika.com/aff_i?offer_id=1106&file_id=12166&aff_id=1708&file_id=12132" width="1" height="1" />
    I would need it to have a certain height and width on my app. Thanks, any and all help is appreciated.

    Unfortunately, that is not an option, as I am using this banner for an ad network( http://raftika.com). The banner is a GIF image. Is there no way to embed HTML in AIR?

  • Air for android - not connecting to lccs

    I created an as3 swf that connects to lccs. It works well. I'm using the 10.1 swc. I used the same code in Air for Android cs5 file. It doesn't give any errors but it will not connect to the lccs server. I put an event listener on and it gives an error "INVALID_INSTANCE:invalid_instance". Now that would leave me to believe my roomURL is not correct but it surely is. And the room connects successfully when in an as3 swf.
    Does the Air for Android cs5 strip out things or something? The error event listener worked on the android phone but it didn't connect. Anyone know why the android version wouldn't connect?

    Sample Code on how to use debug trace that Raff was mentioning
    In your codes applicationComplete or creationComplete event, please add this line
    DebugUtil.traceFunction = traceMessage;
    DebugUtil.suppressDebugTraces = true;
    and add this funtion
    private function traceMessage(message:String):void {
           TEXTAREA OR LOGGER .text += message + "\n";
    Thanks
    Arun

  • AIR for android Sensors

    Hi all,
    I am developing in AS3 AIR for Android in the flash cs5 IDE.
    I want to develop an app that on click logs the users lat, lon, elevation, angle, and direction the phone's camera is pointing.
    I know that the there are accelerometer and geolocation sensors in flash.sensors, but i am unclear as to if the accelerometer and geolocation can give me all the data i need.  I know i can the lat and lon with geolocation.. i don't know how ever really how to interpret the data of the accelerometer, let alone how to determine the direction (n,e,w,s etc..) of the phone..
    also, i am not sure i am running the most up to date AIR for Android extension but my extension manager doesn't seem to prompt me for an update..
    Erik

    Well Accx,y and z all give accelration in x, y and z direction.
    Imagine an AIR application opened with stage in portrait mode. Now imagine
    X axis running from bottom left corner to bottom right corner,
    Y axis running from bottom left corner to top left corner and
    Z axis coming out from the face of the device.
    When a device is lying flat on a table on its back z axis is pointing up and is under gravitational accelration of 1 g(9.8 m/s2) downwards. So you can imagine an acceration of 1 g upwards to make that device lie stable on the table.
    When a device is under free fall, all three values will be 0.
    When device is in upright position with its face poiting your front, accY would be 1 and accX, accZ would be 0.
    I hope this helps in understanding the different values in other scenarios. Its just the aceeraltion in a specific direction. As a side note, accelrometer values would not give the direction the device's face is pointing to. For example in the last case above, if you rotate the device about its Y axis, all values would remain same, but the face is still pointing to different directions.
    Thanks,
    Meet

  • How to use expansion files for AIR app (flash cs6) on Google Play Store

    I am currently working on an app that will undoubtedly end up bigger than the maximum size of 50 MB for the APK, and I have no clue how to add files to an expansion pack, how to load expansion pack, what files need to be in expansion pack, or even what an expansion pack does/how it works. If anyone can point me in the right direction, that would be great, I want to make an expansion pack now before I get even more files.

    Haven't had a need to do this for file size purposes but since we can now download and use SWFs with ABC, I just specify my external SWFs when I compile and once my app is run it downloads the SWFs (with a pretty preloader) before the user can do anything. I have my own servers so I believe that's all that Amazon Bucket is actually used for. That user didn't have their own web servers to serve up the SWF content from.
    Aside that, check the answer here. Google will turn any extra files uploaded for your app into OBB for you. You just upload the SWF:
    Create expansion file for AS3 android Air App Flash cs6 - Stack Overflow
    It also outlines if you need to upload multiple files then .zip them up and use an AS3 .zip library to extract the files.

  • Build AS3 AIR project on Linux for Android and iOS?

    We're about to use a build server for taking some work out of our hands (testing, building etc). The build server is running on Linux and therefore we would like to know if we can build the AS3 (AIR) sourcecode on the Linux environment. We usely create apps for Android and iOS.
    Can anyone give some more information on this? Is it true that the ADT doesn't run on Linux?

    FYI, I updated my blog post.  I found a program called ideviceinstaller (available in the Ubuntu repos ala apt-get install ideviceinstaller or from the website) that allows installation of .ipa files onto iOS devices from Linux.
    Previously that was the only development iteration step that required a Windows VM.  Now in my workflow, a VM is no longer required for iOS development.  (Obviously a Mac is still required to upload to the app store at the end.)
    Also, a bonus, here's a quick command to view UUID's authorized by the provisioning file inside an .ipa file:
    > unzip -c Main.ipa *.mobileprovision | strings | egrep -i string\>[0-9a-f]\{40\}
    <string>d9c2fee807324a18baf5a544ffa2c80f23d3****</string>
    <string>f634a0a95bc2327f6a26cb39cf18a01918cf****</string>
    <string>651e4284467d328e37c18988c981179b5909****</string>
    <string>c11d7eef800632d072da067d9b993624f25b****</string>
    <string>72d85ab26cd525a328d3a71e3fe416c61fd6****</string>

  • The Error Message 'Application descriptor file cannot be parsed' shows when compiling (Ctrl + Enter) Adobe AIR for Android applications on Flash Professional CS5.5

    The Error Message 'Application descriptor file cannot be parsed' shows when compiling (Ctrl + Enter) Adobe AIR for Android applications on Flash Professional CS5.5
    This is happening for most of the pupils and staff at our school and they are unable to complete their work.
    This also happens on a fresh copy of windows and CS5.5 without any updates and also with all latest updates.
    I have tried it on 32-bit and 64-bit CS5, Windows, Air and Java with the same error every time.
    There are a small minority of users where this works fine for them with no issue.
    I have tried re-setting user profiles.
    I have tried a local admin and domain admin account with the same issue
    I have noticed however that if the file is moved to the shared area it will compile. If it is on their documents area it will not compile. The users have full control in both locations. This is fine for staff but we are unable to give full control or modify access to the shared area for the pupil's
    I have been through the online support section and it directed me to phone Adobe Customer care who informed me that all support has been discontinued for CS5, CS5.5 and CS6 and they will only support creative cloud.
    Any ideas what to try next? There is no other information about this error and I cannot work out what is causing it.

    I have tried and  able to package an apk using your XML file.Could you please make sure your XML file starting from line 1 and coloumn 0.Any space will results in the error (Application Descriptor file cannot be parsed)
    -Pranali

  • Android APK Expansion Files for Apps over 50MB

    Hello Support,
    We are building a new version of an app pubished on PlayStore (built with Adobe AIR) and need to embed higher resolution images. This results in my app apk file size which is over 100 MB.
    Google allows to upload apks that are <= 50 MB. For apps which require more storage capacity than this limit, expansion files are needed.
    Can you please inform us about how to incorporate these expansion files with an AIR app?
    Is there a native extension or a built-in feature to prepare the expansion files and surpass the limit?
    I've looked in the forums & there is no definite answer or solution.
    If this is not possible at present, can you please add it to the wishlist for the next version of Adobe AIR SDK? Or perhaps, release a free/paid native-extension which enables this.
    Thanks!

    Yes I got it working this morning, honestly I've got no idea what did the trick, as I did nothing. My only guess right now is I reuploaded new versions of my APK and OBB files on the Android Developer Console yesterday, and maybe it could have taken this long to "refresh".
    Basically right now if I install a fresh apk on the device, it will downloads and unzip my obb. If I kill the app and relaunch, it validates if my obb is still there and continues, when before a simple message box with my app name would stay displayed forever.
    Here's my app code based on the exemple from http://extensionsforair.com/extensions/apk-expansion-files/ :
    public class Main extends Sprite
                        public function Main():void
                                  stage.scaleMode = StageScaleMode.NO_SCALE;
                                  stage.align = StageAlign.TOP_LEFT;
                                  addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
                        private function onAddedToStage(evt:Event):void
                                  addChild(Console.GetInstance());
                                  Console.Trace("Start");
                                  var apkExpansionFiles:APKExpansionFiles = new APKExpansionFiles();
                                  apkExpansionFiles.addEventListener(APKCompleteEvent.APK_COMPLETE, onComplete);
                                  var BASE64_PUBLIC_KEY:String = "your_public_Key";
                                  var outputDir:String = "/Android/data/"; // the outpout folder
                                  var mainVersion:String = "1302000"; // the version of the APK that the file was uploaded
                                  var mainSize:String = "10639971"; // the length of the file in bytes
                                  var mainUnzip:Boolean = true; // unzip the file
                                  //var patchVersion:String=”1000024″; // the version of the APK that the file was uploaded
                                  //var patchSize:String=”14923834″; // the length of the file in bytes
                                  //var patchUnzip:Boolean=true; // unzip the file
                                  apkExpansionFiles.expansionFilesDelivered(BASE64_PUBLIC_KEY, mainVersion, mainSize, mainUnzip, outputDir); // only main obb file
                                  //apkExpansionFiles.expansionFilesDelivered(BASE64_PUBLIC_KEY, mainVersion, mainSize, mainUnzip, outputDir, patchVersion, patchSize, patchUnzip); // main and patch obb files
                        private function onComplete(e:APKCompleteEvent):void
                                  Console.Trace("onComplete");
                                  for (var key:Object in e.params)
                                            Console.Trace("Key : " + key + ", Value : " + e.params[key]);
                                  var conteneurImage:Loader = new Loader();
                                  var fileName:String = e.params.outputDirMain + "asset/2048-2.png";
                                  Console.Trace("File name = " + fileName);
                                  var file:File = new File(fileName); // the outpout Main folder
                                  Console.Trace("File exists? = " + file.exists);
                                  //var file:File = new File(e.params.outputDirPatch+”myImage.jpg”);    // the outpout Patch folder
                                  var image:URLRequest = new URLRequest(file.url);
                                  conteneurImage.load(image);
                                  conteneurImage.scaleX = 0.3;
                                  conteneurImage.scaleY = 0.3;
                                  var secondImageContainer:Loader = new Loader();
                                  fileName = e.params.outputDirMain + "asset/2048.png";
                                  file = new File(fileName);
                                  image = new URLRequest(file.url);
                                  secondImageContainer.load(image);
                                  secondImageContainer.scaleX = 0.3;
                                  secondImageContainer.scaleY = 0.3;
                                  secondImageContainer.y = 614;
                                  this.addChildAt(conteneurImage, 0);
                                  this.addChildAt(secondImageContainer, 1);

  • How can I use a file in flash cs6 that I made in flash cs5.5 air for android

    I have made an app in in air for android in flash cs5.5 air for android, and I want to edit it in cs6 and play it in cs6.
    But if I put Ctrl+Enter I got an error: createWin process failed with error 2: system couldn't find the file. I think the problem is that I'am using air for android 2.6 version in flash cs5.5 and version 3.2 in flash cs6. I have searched the web and found out that you can add older air versions using the sdk manager and I have tried it but first I get the error that the version of the sdk I am trying to install is not valid and after some files that I added to the sdk folder I get this error:Only SDK higher than version 3.4.2540 may be added.
    I there a possible way to update the air for android for an fla or apk? Or how can I let my originally file work fine in flash cs6??

    system couldn't find the file
    If you can´t get a more specific hint why your project can´t compile then I can think of some reasons theis error might occur
    1.You had files included besides the swf, like videos, audio files, xml files, that are not present in the place air expects them to be
    2.somewhere in your createWin functions there is a class import needed that isn`t present in 3.2 anymore, for example some classes or functions from classes that were valid in 2.6 are not any more in 3.2
    3. to achieve better eror logging, allow for debugging in the publishing options and see what specific lines in your code throw the error
    4.any air app needs a cert file, this needs to be created once, if you migrated to e new system it might be you never created that file which air expects to even begin the compiling process
    once you isolate the problem, report back

  • Can you play/view swf files on adobe air for android?

    Hi, yes; I'm new here, as well as to Adobe Air, and I'm still trying to learn the ropes around here, and I apologize in advance if this has already been asked, or I have placed this question in the wrong forum.
    The thing is, I was wondering if it was possible to play my SWF files via adobe air for android; and if so, how? Thanks in advance either way.

    Can you please give directions where can i clear that cash.
    Anyway i don`t think its the case, because this is first time i hooked phone to internet, and first time i launched Android app store.
    Edit:
    I went to https://market.android.com and there is Adobe air app. But when i try to download it says that my device doesn't support it (Samsung Galaxy GT-I5500) By default it comes with android 2.1 and doesn't support Adobe air, but i upgraded firmware to 2.2.
    Maybe that is the reason it doesn't show me Adobe AIR in app store - based on my phone, not my Android version ?

  • Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    igonneau wrote:
    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer?
    You can, but how are you going to back up those other files?  When (not if) your Time Capsule fails, you risk losing them.  See #Q3 in Using Time Machine with a Time Capsule for details.
    Then can i access these files only on the time capsule without connecting it?
    Not sure what you mean.  You have to connect a computer, either via Ethernet cable or wirelessly, to read or write to the disk. 

  • Air For Android - Full Screen not working

    Opened CS5.5 > Chose "Air For Android" which gave me a stage dimension of 480x800 default. I then created my app.
    I am using a Droid Bionic and testing my app on it. It will not go to full screen, regardless of how I am holding the Droid. When publishing, I clicked "Full Screen" and Portrait, Landscape, Auto Orientation, etc. I tried all of the publishing options, yet still there is white screen on the eastern and southern side of the screen.
    I have a picture on the main screen, and it fits perfectly within the 480x800 dimmensions when playing in Flash. After publishing to an APK file and testing it on Droid, I have that white space as mentioned, as if the stage size grew larger than the picture / app. I also shrank the stage(480x800) dimensions to to (340x600) , but still the same amount of white space. When I move the picture to the right a bit, and publish, it shows the white space on the left hand side of the stage. This can only mean that when I publish, the stage size grows but everything on the stage stays the same. 
    Any ideas?
    Thanks!

    I removed:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    from AS3 and it works better. Now there is even white space on the north and south side of the screen. Clicking "Full Screen" in the publish settings, makes a little more white space, which is weird. It as if now the stage is expanding its height, rather than its height and width due to me using the above code. Still, would like to get rid of that extra white space.
    Edit: It looks like the stage height grew by 60. If I expand the picture by 60, placing it on the stage at 0x and -30y, it fits fine on the bionic. I don't understand why this is happening, and scared that it may be different for each device.

Maybe you are looking for

  • (New slant on) Printing at 1200 dpi from inDesign CS5 to a Xerox colour laser.

    I print calendars magazines and stuff like that. If I use Photoshop CS3~CS5 I can print a 600 dpi photograph to my Postscript 3 enabled Xerox 1200 dpi laser and get quite good appearance of the photo. Even better if I use a 1200 dpi image in the firs

  • Communiaction between two applications

    Hi, Could you gus please guide me how to call another application in current application. and also i want to pass values from current application to calling application. its very urgent for me. explain me how to all application(webdynpro) Thanks in a

  • Issues even after updating to build 14.3.A.0.757

    List of problems that I am still facing with my Z1 Compact.. 1. Walkman widget does not work in lockscreen 8 out of 10 times at least, if not more. 2. Notification sounds still cracks, though the ringer issue appears to be solved. 3. The back key nev

  • What`s going on with XML Parser version 2.0.2.7?

    Hi, In january, I was told on this forum by Steven Muench to wait version 2.0.2.7 of Oracle XML Parser to correct a textarea bug with <xsl:output method="HTML"... I would like to know what's going on and when should I expect this new version be avail

  • HI Guys, ABT getting into SAP SD

    Hi Guys, I am Amod ,Automobile Engg. from India  but now in Australia from 2 yrs.in same field . I am preparing for my sap Sd (order fulfilment1&2) certification.I have exp. of 10 yrs. in Auto industry and used Sap for day to day functions (limited )