Some iOS Native extensions that can be useful

Hi,
I have made some iOS Native extensions that can be useful.
You can find it at https://github.com/xperiments?tab=repositories
ANE7z
=> Adobe AIR iOS Native Extension to decompres 7z files.
ANEZipFile
=> Adobe AIR iOS Native Extension to zip/unzip files.
ANEFileSyncInterface
=> A micro http server with FileManagement capabilities Native Extension
IOSSystemUtils
=> Adobe Air IOS Native Extension to control Brightness / Torch / Badge
ANEUnRar
=> Adobe Air Native Extension to Obj-C UnRar Lib
Please give me your comments

First of all, thank you for creating this extension. However, it doesn't seem to work. Below is my code for decompressing ByteArray (error handling is stripped for simplicity):
                    public function decompress(aData:ByteArray):ByteArray {
                              // Save data to file
                              var fileInput:File = File.applicationStorageDirectory.resolvePath("input.7z");
                              var stream:FileStream = new FileStream();
                              stream.open(fileInput, FileMode.WRITE);
                              stream.writeBytes(aData);
                              stream.close();
                              var folderOutput:File = File.applicationStorageDirectory.resolvePath("output");
                              ANE7z.decompress(fileInput, folderOutput);
                              var files:Array = folderOutput.getDirectoryListing();
                              for each (var fileOutput:File in files) {
                                        trace("Extracted file: " + fileOutput.nativePath);
                                        if (!fileOutput.isDirectory) {
                                                  var bytes:ByteArray = new ByteArray();
                                                  stream = new FileStream();
                                                  stream.open(fileOutput, FileMode.READ);
                                                  stream.readBytes(bytes);
                                                  stream.close();
                                                  bytes.position = 0;
                                                  return bytes;
                              return null;
The problem is folderOutput.getDirectoryListing() always returns an empty array.

Similar Messages

  • Need to know of a method / process that can be used to send the same msg to all those appearing in my email listings with the same extension after the "@" sign in their address(es) on my macbook [e.g., with "@gov.ca"; Snow Leopard].

    Need to know of a method / process that can be used to send the same msg to all those appearing in my email listings with the same extension after the "@" sign in their address(es) on my macbook [Snow Leopard].

    If you simply want to send the exact same message to everyone in your address book with emails ending in "@whatever.com", you can do the following:
    Create an email with subject, message and attachments but no addresses
    Open Address Book, All Contacts
    Search in Address Book for @whatever.com
    Select the results and drag them into the To: or Bcc: field of the email. If Bcc: then put your email address in the To: field.
    Send the email
    This will not personalize the emails (such as with "Dear firstname:" at the top of the message) but it will let you send an idential message to everyone who meets your criteria.

  • Apple iOS is ****.... I just update my apps then for some reason is stop and can't use it.. If you delete and reinstall your apps profile will be lost..

    Apple iOS is ****.... I just update my apps then for some reason is stop and can't use it.. If you delete and reinstall your apps profile will be lost....
    There's no rollback in the application if you encountered failed during the installation.. The application profile will be lost... ****....

    Try update the app using iTune (computer) and sync to iPad.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%201/47e895d853a70f226f0 e254ed8bca59f.jpg

  • AIR3 (iOS) - Native Extension (objectiveC) - control Acrobat PDF API

    In my iPad app, I want to load in a PDF and then get control of the Acrobat API to allow the user to interact with the PDF as they see fit.
    Is this possible?
    I am making the assumption that there is currently objectiveC code available to use the Acrobat API on the iOS. Can anyone verify?
    I am also making the assumption that through Native Extension I can bridge to this objevtiveC code from AS3 on the iOS. Can anyone please verify?
    Thanks...

    Yes. The ability to word search and jump to a specific page.
    Bringing up a PDF in iOS browser or through StageWebView you cannot perform these actions.
    I've seen iPad apps that can word search and page jump. I'm assuming this is being done with ObjectiveC.
    I'm looking for someone to confirm this is the case.
    Because if so I'm hoping we can then code a Native Extension utilizing this ObjectiveC code and thus control the PDF the way we want.

  • Creating ios native extension with 3rd party frameworks

    Hello,
    I'm new to Air development and creating a ios native extension for my flex mobile project.I want to include third party frameworks such as admob,facebook,chartboost in my ANE
    I have tried to link frameworks using packagedDependencies but it dosn't work.(gives me an error telling that "armv7 not supported")
    am I doing something wrong? or is there any proper way to link frameworks?
    platformoptions.xml
    <platform xmlns="http://ns.adobe.com/air/extension/4.0">
         <sdkVersion>7.1</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 6.1</option>
              <option>-framework StoreKit</option>
              <option>-framework CoreGraphics</option>
              <option>-framework UIKit</option>
              <option>-framework Foundation</option>
         </linkerOptions>
         <packagedDependencies>
             <packagedDependency>frameworks/Chartboost.framework</packagedDependency>
             <packagedDependency>ios/libAdExtension.a</packagedDependency>
        </packagedDependencies>
    </platform>
    extensionxml
    <extension xmlns="http://ns.adobe.com/air/extension/4.0">
        <id>com.my.extensions</id>
        <versionNumber>1</versionNumber>
            <platforms>
                <platform name="iPhone-ARM">
                <applicationDeployment>
                <nativeLibrary>libAdExtension.a</nativeLibrary>
                <initializer>ExtInitializer</initializer>
                <finalizer>ExtFinalizer</finalizer>
                </applicationDeployment>
            </platform>
        </platforms>
    </extension>
    -command
    /Applications/Adobe\ Flash\ Builder\ 4.7/sdks/4.6.0+airSDK4.0/bin/adt -package -target ane adExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM library.swf frameworks/Chartboost.framework ios/libAdExtension.a -C ios . -platformoptions platformoptions.xml
    -error
    ld: warning: ignoring file /var/folders/3r/x0bh_4.... file was built for unsupported file format ( 0Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_Chartboost", referenced from:
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    *I used lipo to combine simulator and device .a files
    please help

    From the catalog Chartboost.framework copy the static library file Chartboost(path: Chartboost.framework/Versions/A/Chartboost) and use it instead of .framework :
    <platform xmlns="http://ns.adobe.com/air/extension/4.0">
         <sdkVersion>7.1</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 6.1</option>
              <option>-framework StoreKit</option>
              <option>-framework CoreGraphics</option>
              <option>-framework UIKit</option>
              <option>-framework Foundation</option>
         </linkerOptions>
         <packagedDependencies>
             <packagedDependency>frameworks/Chartboost</packagedDependency>
             <packagedDependency>ios/libAdExtension.a</packagedDependency>
        </packagedDependencies>
    </platform>
    adt -package -target ane adExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM library.swf frameworks/Chartboost ios/libAdExtension.a -C ios . -platformoptions platformoptions.xml

  • Сertificate exception when building iOS native extension

    I have certificates for developer and distribution . I signed AIR apps using those certificates, and all work (I publiched 5 games to AppStore, all OK).
    But when I try to compile an iOS native extension, I get:
    Unable to build a valid certificate chain for the signer extension.
    Can someone help me, please? All my attempts failed to fix it.

    How did you compile your ane file? I met same issue before.
    adt -package -target ane myextension.ane extension.xml -swc mySwc.swc -platform iPhone-ARM library.swf libmylib.a -platformoptions myplatformoptions.xml
    lnside myplatformoptions.xml, I linked all the framework and shared libraries, as following
    <platform xmlns="http://ns.adobe.com/air/extension/3.1">
         <sdkVersion>5.1</sdkVersion>
         <linkerOptions>
              <!-- to use the CoreMotion framework -->    
              <option>-framework CoreMotion<option>
              <!-- to link with the libiconv.dylib -->
              <option>-liconv</option>
         </linkerOptions>
    </platform>
    Please let me know, if it does work.

  • Duplicate symbol in iOS native extension

    I'm trying to add an Objective C class to an existing native extension that I have for iOS. The code builds fine in Xcode, and the ANE process still seems to work fine. But when I try to package the application for debugging on my iPhone I get this error:
    Error occurred while packaging the application:
    ld: duplicate symbol _OBJC_METACLASS_$_EmailViewDelegate in C:\Users\jmiller\AppData\Local\Temp\18faba99-de69-437b-8fed-c983e5ce2882/libTspNativeExt. a(EmailViewDelegate.o) and C:\Users\jmiller\AppData\Local\Temp\18faba99-de69-437b-8fed-c983e5ce2882/libnet.theservic epro.a(EmailViewDelegate.o) for architecture armv7
    Compilation failed while executing : ld64
    EmailViewDelegate is the name of the class I'm trying to add. libTspNativeExt.a is the library I'm building in Xcode. I have no idea where libnet.theservicepro.a is coming from but it is based on the id from my extension.xml (which is net.theservicepro). I've inspected the ANE with WinRAR and although I see my libTspNativeExt.a in the iOS folder, I do not see this other library anywhere.
    The only fix I'm seeing is to use hideAneLibSymbols=yes in the launch parameters. However, when I do that I get this error while packaging:
    Error occurred while packaging the application:
    Compilation failed while executing : ld64
    Most people are running into this problem with two native extensions that actually conflict. But something in my flow seems to be duplicating the code within my single ANE. Any suggestions?

    And all it took was typing out the question for the answer to hit me. I'm going to share it here incase anyone else runs into this same problem.
    The problem was in my platform_options.xml file for iOS. The previous coder had set it up like this:
    <packagedDependencies>
        <packagedDependency>libTspNativeExt.a</packagedDependency>
        <packagedDependency>BMSPrinterKit_US.framework</packagedDependency>
    </packagedDependencies>
    So behind the scenes, ADT is putting all these dependancies into a libextensionid.a library which means we were telling it to import our library a second time. I'm amazed it actually worked before!

  • System Image Restore Fails "No disk that can be used for recovering the system disk can be found"

    Greetings    
                                        - Our critical server image backup Fails on one
    server -
    Two 2008 R2 servers. Both do a nightly "Windows Server Backup" of Bare Metal Recovery, System State, C:, System Reserved partition, to another storage hard drive on the same machine as the source. Active Directory is on the C: The much larger D: data
    partition on each source hard drive is not included.
    Test recovery by disconnecting 500G System drive, booting from 2008R2 Install DVD, recovering to a new 500G SATA hard drive.
    Server A good.
    Server B fails. It finds the backed-up image, & then we can select the date we want. As soon as the image restore is beginning and the timeline appears, it bombs with "The system image restore failed. No disk that can be used for recovering the system
    disk can be found." There is a wordy Details message but none of it seems relevant (we are not using USB etc).
    At some point after this, in one (or two?) of the scenarios below, (I forget exactly where) we also got :
    "The system image restore failed. (0x80042403)"
    The destination drive is Not "Excluded".
    Used   diskpart clean   to remove volumes from destination drive. Recovery still errored.
    Tried a second restore-to drive, same make/model Seagate ST3500418AS, fails.
    Tried the earliest dated B image rather than the most recent, fail.
    The Server B backups show as "Success" each night.
    Copied image from B to the same storage drive on A where the A backup image is kept, and used the A hardware to attempt restore. Now only the latest backup date is available (as would occur normally if we had originally saved the backup to a network location).
    Restore still fails.         It looks like its to do with the image rather than with the hardware.
    Tried unticking "automatically check and update disk error info", still fail.
    Server A  SRP 100MB  C: 50.6GB on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Server B  SRP 100MB  C: 102GB  on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Restore-to hard drive is also Seagate ST3500418AS.
    http://social.answers.microsoft.com/Forums/en-US/w7repair/thread/e855ee43-186d-4200-a032-23d214d3d524      Some people report success after diskpart clean, but not us.
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/31595afd-396f-4084-b5fc-f80b6f40dbeb
    "If your destination disk has a lower capacity than the source disk, you need to go into the disk manager and shrink each partition on the source disk before restoring."  Doesnt apply here.
    http://benchmarkreviews.com/index.php?option=com_content&task=view&id=439&Itemid=38&limit=1&limitstart=4
    for 0x80042403 says "The solution is really quite simple: the destination drive is of a lower capacity than the image's source drive." I cant see that here.
    Thank you so much.

    Hello,
    1. While recovering the OS to the new Hard disk, please don't keep the original boot disk attached to the System. There is a Disk signature for each hard disk. The signature will collide if the original boot disk signature is assigned to the new disk.
    You may attach the older disk after recovering the OS. If you want to recover data to the older disk then they should be attached as they were during backup.
    2. Make sure that the new boot disk is attached as the First Boot disk in hardware (IDE/SATA port 0/master) and is the first disk in boot order priority.
    3. In Windows Recovery Env (WinRE) check the Boot disk using: Cmd prompt -> Diskpart.exe -> Select Disk = System. This will show the disk where OS restore will be attempted. If the disk is different than the intended 2 TB disk then swap the disks in
    correct order in the hardware.
    4. Please make sure that the OS is always recovered to the System disk. (Due to an issue: BMR might recover the OS to some other disk if System disk is small in size. Here the OS won't boot. If you belive this is the case, then you should attach the
    bigger sized disk as System disk and/or exclude other disks from recovery). Disk exclusion is provided in System Image Restore/Complete PC Restore UI/cmdline. 
    5. Make sure that Number and Size of disks during restore match the backup config. Apart from boot volumes, some other volumes are also considered critical if there are services/roles installed on them. These disks will be marked critical for recovery and
    should be present with minimum size requirement.
    6. Some other requirements are discussed in following newsgroup threads:
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/871a0216-fbaf-4a0c-83aa-1e02ae90dbe4
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/9a082b90-bd7c-46f8-9eb3-9581f9d5efdd
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/11d8c552-a841-49ac-ab2e-445e6f95e704
    Regards,
    Vikas Ranjan [MSFT]
    ------- This information is provided as-is without any warranties, implicit or explicit.-------

  • Looking for a free iOS 4 app that can search through .pdf files or spreadsheets

    Looking for a free iOS 4 app that can search through .pdf files or spreadsheet    
    Thanks

    Hey there
    "pdf creator" for iPad works flawlessly for me working with pdf files
    It takes care of all my needs
    I'm not sure about sending via Wifi or Bluetooth but I send them via e- mail all the time
    Possibly it could handle your needs as well
    Just type it into the App Store search field and the first one that comes up is the one I use
    Jump on over there and read up on it before buying and see if it will help you 
    Hope this helps
    Regards

  • Is there any way to an index that can be used to include the "OR condition "?

    Hello I have some questions.
    The test was conducted in the following procedure .
    create table test
    c1 varchar2(10),
    c2 varchar2(10),
    primary key(c1)
    create index test_idx1 on test(c2);
    Command> explain select * from test where c1 = 'AAAAAAAAAA' or c2 = 'AAAAAAAAAA';
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         TEST.C2 = 'AAAAAAAAAA' OR TEST.C1 = 'AAAAAAAAAA'
    Command>
    Command> explain select * from test where c1 = 'AAAAAAAAAA' and c2 = 'AAAAAAAAAA'
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   TEST.C1 = 'AAAAAAAAAA'
      NOT INDEXED:         TEST.C2 = 'AAAAAAAAAA'
    Command>
    By including the "OR condition " in this test does not use the index.
    Is there any way to an index that can be used to include the "OR condition "?
    Thanks.
    GooGyum.

    A database cannot in general use indexes in this way for an 'or' involving two different columns. However, for this specific example one can easily rewrite the query using 'UNION' to use the relevant indexes while still giving the same (correct) result:
    Command> explain select * from test t1 where t1.c1 = 'AAAAAAAAAA' union select * from test t2 where t2.c2 = 'AAAAAAAAAA';
    Query Optimizer Plan:
      STEP:                1
      LEVEL:               1
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST
      INDEXED CONDITION:   T1.C1 = 'AAAAAAAAAA'
      NOT INDEXED:         <NULL>
      STEP:                2
      LEVEL:               2
      OPERATION:           RowLkRangeScan
      TBLNAME:             TEST
      IXNAME:              TEST_IDX2
      INDEXED CONDITION:   T2.C2 = 'AAAAAAAAAA'
      NOT INDEXED:         <NULL>
      STEP:                3
      LEVEL:               1
      OPERATION:           OrderBy
      TBLNAME:             <NULL>
      IXNAME:              <NULL>
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         <NULL>
      STEP:                4
      LEVEL:               2
      OPERATION:           UnionMergeSort
      TBLNAME:             <NULL>
      IXNAME:              <NULL>
      INDEXED CONDITION:   <NULL>
      NOT INDEXED:         <NULL>
    Maybe you can apply a similar trick? If you know there is no possibility of duplicate rows then you can further optimise this (in terms of performance) by using UNION ALL.
    Chris

  • A script that can be used to track text content changes in indesign?

    Is there a possibility a script that can be used to track text content changes in indesign. My Indesign software's version is CS3. As you can see below, I have deleted some texts and added some. I did it in another software.
    I have been searched for a long time. Because of my poor English, I still can't come up with any Object Model related to the script yet.
    Here is some idea of mine:
    Use the script tracking my revising texts. When I  add some new texts, the texts will be underlined. When I delete some texts, the position of the first character of the removed text will be added a small red triangle or something.
    Thanks in advance.

    Hidden dragon, what does that mean?
    I can't comprehend fully what you said.
    Is IDML short for Indeisgn Markup Language?
    I think you are telling me that I can open the Indeisgn document by using the software InCopy. Then I have change some contents. InCopy will help me tracking the revision.
    getZinger. Do I get your point?

  • Is there a cable that can be used to connect a vhs player to an iMac?

    Greeting all,
    I am trying to find out if there is a cable that can be used to connect a vhs player to an iMac? I have some old tapes that I would like to transfer and convert to dvd.
    Thanks

    If you have access to a digital video camera that has pass thru capability you can use it in lieu of the ADVC110.  Plug the VCR into the camera and the camera into the Mac and import into iMovie.
    OT

  • Is there a limit to no. of summary fields that can be used in a cross tab?

    Hi,
    While creating a cross tab is there a limitation to number of summarized fields that can be used?
    - The cross tab when uses 184 fields as summary fields leads to Crystal report application to crash at the time of export to excel.
    - Tried with two Datasources: XML and excel
    - If we reduce the number of summary fields used to 102 exactly, export works fine in excel.
    - If 2 cross tabs are used each containing 92 summary fields(in order to show 184) export to excel works fine.
    Please let me know if there is any such limitation which leads to CR application to crash when exporting in excel?
    Thanks
    Regards,
    Nidhi

    I suggest you purchase a case and have a dedicated support engineer work with you directly:
    http://www.sdn.sap.com/irj/boc/gettingstarted
    Or
    http://store.businessobjects.com/store/bobjects/Content/pbPage.CSC_map_countyselector/pgm.67024400?resid=jFmmLgoBAlcAAALO-iYAAAAP&rests=1278687224728
    If this is a bug you'll get a refund, if not post your enhancement request in the Idea Place. Or the Rep will suggest a better way to create your report.

  • When I sync my iphone 4S using iTunes it only syncs 8.5GB of music, not the entore library as specified.  Is there a capcity default limit of the amount of storage that can be used for music and if so how do I change it?

    When I sync my iphone 4S using iTunes it only syncs 8.5GB of music, not the entore library as specified.  Is there a capcity default limit of the amount of storage that can be used for music and if so how do I change it?

    The only limit is that of the device. No restrictions on how much of it you can use for music. Is part of your music library unchecked?
    tt2

  • What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    Usually Fat32/MS-DOS as mentioned, but that has several limitatiuns, like 4GB filesize limit.
    One option is MacDrive for you PCs... allows them to Read/Write HFS+...
    http://www.mediafour.com/products/macdrive/
    More options...
    NTFS-3G Stable Read/Write Driver...
    http://www.ntfs-3g.org/
    MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
    http://www.osnews.com/story/16930

Maybe you are looking for

  • Why is network connection asking for WEP password all of a sudden?

    Just recently, my airport or wireless network seems to have gotten weird on me. I've used the same wireless network flawlessly for years and tonight, I noticed my internet seemed down. I tried connection doctor to determine if it was my ISP or my net

  • How would I find the most common value every nth row in a column

    SCENARIO 1 I have a column with a series of numbers in c1:c1000 as follows: 2 2 3 1 1 4 2 3 1 2... and I would like to find the most common value for every nth (in this case, second) row. SCENARIO 2 Originally, I created a separate column in J and us

  • Folder creation in MS sharepoint from WD4A application

    Hi All, We have a requirement to create folders in MS sharepoint from our WD4A applications. We need some guidence in achieving this functionality. Thanks in advance. Regards, Booma Ganesan

  • Setting variables from path

    How can I set the name of a value from an alias such as "P & M:Editorial Photography:THISFOLDER:fpo:Book Shelf:" to "THISFOLDER" Basically I want to set the name of a value to whatever the name of the second level folder up from the given path is. Pe

  • Update TCURR-UKURS field

    Dear Gurus , I wrote a programme that insert records in that TCURR table.My problem is that i can't pass the value of  TCURR-UKURS with the '/' symbol. For example look the record that i want to pass . 900     EURX     AUD     EUR     79919488     /1