Tests of ANE

I have old or something but I can not understand how to test changes even to just a DONKEY. I use FB 4.6, NDK 2.0 and tests on the device.

I've implemented the DONKEY as described in the base of the ANE tutorial and it works fine. Can I change the test string to the "Hello, Mr of the native code!" and compile and re-export the DONKEY. But no matter what I do, the application on the device displays the string of origin when the button is pressed. I tried to clean it up and rebuild three associated projects, but nothing makes a difference. I hope someone can tell me where I'm wrong.

Try to remove your main project the donkey and add it again. I think that all simply by clicking 'Edit' button on the ANE links page is sufficient for FB realize things have changed.

Tags: BlackBerry Developers

Similar Questions

  • Upgrade to Flash/AIR/ANEs broke 8.1 Windows

    It is the problem, been using Flash/AIR years to build the AIR apps. Recently built a new system running Windows 8.1

    I have transferred all my work in the old machine of Windows 7 and open the .fla files, fix the links and the file test, there is the error.

    Could not load the content because there was a problem loading the extension: error: requested the extension com.distriqt.Camera is not found.

    XPath error: invalid expression

    (/ UserSettings/Victims/*[exact_name='adl.exe']/(null) [1] / * [1]

    ^

    XPath error: invalid expression

    (/ UserSettings/Victims/*[exact_name='adl.exe']/(null) [1] / * [1]

    ^

    XPath error: invalid expression

    (/ UserSettings/Victims/*[exact_name='flash.exe']/(null) [1] / * [1]

    ^

    XPath error: invalid expression

    (/ UserSettings/Victims/*[exact_name='flash.exe']/(null) [1] / * [1]

    ^

    XPath error: invalid expression

    /UserSettings/default / (null) [1] / * [1]

    ^

    XPath error: invalid expression

    /UserSettings/default / (null) [1] / * [1]

    So it looks like the .ane files are somehow breaking the file. If I make an empty file with nothing on it, and it works. Then I just added the file .ane in the publication settings and that breaks the app.

    Someone at - there have any idea what is the cause. Is there some conflict inherent between AIR or donkeys and 8.1 of Windows? BTW, I tested with the latest version of the SDK 15.0.0.302 CC and CC2014.

    Well, came back to Windows 7 and everything seems to work but had the same problem at first. My guess is that it was caused by old files, looking for something from the OLD machine in the folder C:\Users\UserName\AppData\Local\Temp. When this error is originally I up, I've went and found the files he asked on the old machine and copied into the new. I think that this is where the error above problems causing began, the .fla was looking for some versions of sort of old excerpt from the file that it was not to find due to new paths of walk and when I went to 7 and instead of copying old files, I deleted the folder he did I solve this problem even though I'm still not 100% certain that this was the case. I also had problems with Flash not recognizing not connected devices when you try to publish to peripheral and going back to 7 solved this as well so I think that evil stick to 7 for now until 10 coming out but I wrote this upward in case someone someday operates int this problem.

  • Problem creating ANE, ArgumentError: Error #3500: the context of the extension doesn't have a method with the name

    I'm bit confused about ANE generation, I'm already all direction, but the error always #3500 when I try to call the DONKEY.

    I create NSAS using java android.

    The tools I use: Flash Builder running on Win-64 win.7. I think I have to, right to the point, here, what I did first step by step;

    1. I create the JAVA application first, with the senigo.extension.android package then I create 3 files, Sample.java, SampleContext.java, PassTextFunction.java

    2.pngsdf.png

    Code Source Sample.Java

    package senigo.extension.android;
    
    
    import android.util.Log;
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREExtension;
    
    
    public class Sample implements FREExtension {
      @Override
      public FREContext createContext(String arg0) {
      // TODO Auto-generated method stub
      Log.i("Sample", "createContext");
    
    
      return new SampleContext();
      }
      @Override
      public void dispose() {
      // TODO Auto-generated method stub
      Log.i("Sample", "Dispose");
      }
      @Override
      public void initialize() {
      // TODO Auto-generated method stub
      Log.i("Sample", "Initialize");
      }
    
    
    }
    

    Source code for SampleContext.Java

    package senigo.extension.android;
    
    
    import java.util.HashMap;
    import java.util.Map;
    import android.util.Log;
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREFunction;
    
    
    public class SampleContext extends FREContext {
      public SampleContext()
      {
      Log.i("SampleContext", "constructor");
    
    
      }
      @Override
      public void dispose() {
      // TODO Auto-generated method stub
      Log.i("SampleContext", "dispose");
      }
      @Override
      public Map<String, FREFunction> getFunctions() {
      // TODO Auto-generated method stub
      Log.i("SampleContext", "getFunctions");
      Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
      functionMap.put("passText", new PassTextFunction());
    
      return functionMap;
      }
    
    
    }
    

    Source code for PassTextFunction.Java

    package senigo.extension.android;
    
    
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREExtension;
    import com.adobe.fre.FREFunction;
    import com.adobe.fre.FREObject;
    
    
    public class PassTextFunction implements FREFunction {
    
    
      @Override
      public FREObject call(FREContext arg0, FREObject[] arg1) {
      // TODO Auto-generated method stub
    
      FREObject result = null;
      try{
      result =  FREObject.newObject("Hello World");
    
      }catch(Exception e)
      {
    
      }
      return result;
      }
    
    
    }
    

    After all the files, I create the jar file using the right click on the tree > > export > > Jar file > > Sample.Jar (I already create jar file that contains just the src folder and after I got frustrated, I create the .jar file contains all the project folder as a whole but still did not work).

    Okay, after that, I create project Flex Library Project, which is to contain the actionscript code to call the native and extension.xml, here the code.

    3.png

    Test Source code. As, FYI: I have already create the public function and the static function the error always the same #3500.

    package senigo.extension.android
    {
      import flash.external.ExtensionContext;
    
      public class test
      {
      private static var extContext:ExtensionContext = null;
    
      public function test()
      {
      trace ("Test Constructor");
    
      if (!extContext)
      {
      initExtension();
      }
      }
      public static function get passText():String
      {
      trace ("Test Pass Text");
      if (!extContext)
      {
      initExtension();
      }
      return extContext.call("passText") as String;
      }
    
    
      private static function initExtension():void
      {
      trace ("Vibration Constructor: Create an extension context");
      extContext = ExtensionContext.createExtensionContext("senigo.extension.android", null);
      }
    
    
      }
    }
    

    extension source code. XML

    FYI: Flex when I put the Native Extension, they said have Windows - x 86 so I already create 3 DONKEY, that contain Android-ARM, ARM Android contain by default, Android contain ARM, Default, and Windows - x 86, but still the same error. I don't have it where is the error.

    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
      <id>senigo.extension.android</id>
      <versionNumber>1.0.0</versionNumber>
      <platforms>
      <platform name="Android-ARM">
      <applicationDeployment>
      <nativeLibrary>Sample.jar</nativeLibrary>
      <initializer>senigo.extension.android.Sample</initializer>
      <finalizer>senigo.extension.android.Sample</finalizer>
      </applicationDeployment>
      </platform>
      <!-- <platform name="Windows-x86">
      <applicationDeployment>
      <nativeLibrary>sample.jar</nativeLibrary>
      <initializer>senigo.extension.android.Sample</initializer>
      <finalizer>senigo.extension.android.Sample</finalizer>
      </applicationDeployment>
      </platform>
      -->
       <platform name="default"> 
    <applicationDeployment/> 
    </platform> 
      </platforms>
    </extension>
    

    After that I created, I copy the sample file of file and extension with the file Sample.jar .swc.

    I have extracted the .swc file, copy the library.swf file Android-ARM, by default, Windows-86 and I create build.bat containing the command like this

    adt -package  -storetype PKCS12 -keystore senigo.p12 -storepass l10nk1ng -target ane senigo.extension.android.ane extension.xml -swc AndroidLib.swc -platform Android-ARM -C ./Android-ARM/ . -platform default -C ./default/ .
    

    the I put the donkey for bending mobile project I created:

    4.png5.png

    6.png

    7.png

    I run, but received the error #3500, I get really confused? What is wrong with my code? is there something that I have wrong or I just missed?

    Please someone help me... and what is already donkey file I can debug in Flex Mobile project? I want to log.i code I wrote, but I confuse air how to the Levant in flash builder.

    in the end, I want to said sorry if my English is not very goods and thank you, because want to see my problem and I appreciate it a lot if you can give me a solution

    So you're saying that test.as I created belongs to android?

    Exactly.

    Okay, so then why when I put just ANE build contain Android-ARM, the error still appear?

    Because that when you launch it engine running Windows AIR request use default implementation in this case. But looks like the default implementation, you use the same Android and default value.

    is that what I have to put Windows-86 to run it on windows?

    If you are creating applications / DONKEY for mobile platforms you don't need it.

    I have to use another actionscript that does not ExtensionContext content?

    Exactly!

    For example, look at this: mesmotronic/air-full screen-ane · GitHub

    record full screen-ane-android - Android app

    full screen-ane-default - default implementation (for all other platforms exclude Android)

    It is an excellent example. It's pretty simple, you understand how it works.

  • Adobe AIR ANE Android NoClasseDefFoundError

    I develop a ANE for use and take advantage of the service games Google play.
    I did a test app in native mode and runs perfectly.
    I generated un ANE and make a Falsh Builder for test. By using this it happens the following error:


    07-22 15:55:35.555: E/AndroidRuntime (9983): FATAL error: main

    07-22 15:55:35.555: E/AndroidRuntime (9983): java.lang.NoClassDefFoundError: com.google.example.games.basegameutils.GameHelper

    07-22 15:55:35.555: E/AndroidRuntime (9983): to com.google.example.games.basegameutils.BaseGameActivity.getGameHelper (BaseGameActivity.ja's: 93)

    07-22 15:55:35.555: E/AndroidRuntime (9983): to com.google.example.games.basegameutils.BaseGameActivity.onCreate (BaseGameActivity.java:10 3)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at com.google.example.games.tanc.MainActivity.onCreate(MainActivity.java:70)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at android.app.Activity.performCreate(Activity.java:5248)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)

    07-22 15:55:35.555: E/AndroidRuntime (9983): to android.app.ActivityThread.access$ 800 (ActivityThread.java:139)

    07-22 15:55:35.555: E/AndroidRuntime (9983): to android.app.ActivityThread$ H.handleMessage (ActivityThread.java:1210)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at android.os.Handler.dispatchMessage(Handler.java:102)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at android.os.Looper.loop(Looper.java:136)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at android.app.ActivityThread.main(ActivityThread.java:5086)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at java.lang.reflect.Method.invokeNative (Native Method)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at java.lang.reflect.Method.invoke(Method.java:515)

    07-22 15:55:35.555: E/AndroidRuntime (9983): to com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run (ZygoteInit.java:785)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)

    07-22 15:55:35.555: E/AndroidRuntime (9983): at dalvik.system.NativeStart.main (Native Method)

    I looked at in the package and class it is displayed. I found the depending on the solution, but does not work.
    NoClassDefFoundError for code in a library of Java on Android - Stack Overflow
    "

    1. Go to 'Properties' of the project.
    2. Select "Java Build Path".
    3. Select 'order and export' tab
    4. You should see 'src' and 'gen' paths and dependencies of the selected project here.
    5. Order how they were first 'src', then 'gen' path
    6. I have change, then this folder 'gen' is built before the 'src '.

    "

    Thank you

    Hi guys,.

    I just got the same questions the other day, and I have to run now. I think that this has nothing to do with the Proguard, downgrade your lib google-play services.

    I upgraded my google-game-services for the last days of version before, and I found that if I chose the jdk 1.7 to write my own ANE sources, my own java package, nor the services google-play-included in the final APK.

    But after that I've chosen the jdk 1.6 to compile my source and rebuilt DONKEY, my own java package included in the final APK.  So I think that the AIR adt does not support classes that generated by jdk 1.7. Then I downloaded the 4.4.52 google services-play-lib version and rebuilt my DONKEY, everything works fine.

    Here is a link to the previous version of google-game-services lib: AdviewSDK_Android/google-game - services.jar to the master to adview/AdviewSDK_Android · GitHub .

    Hope it would help.

  • Import with freshplanet AirAlert.ANE errors

    I discovered the great Freshplanet DONKEY repository https://github.com/freshplanet/

    I'm trying to get the AirAlert base to work, but I can't work on how to fix the import.


    I build my iOS to Adobe AIR app in IntelliJ and that's what I did,

    1. Copied the AirAlert.ane in my folder of ane
    2. Included in my App.xml tag extensions the relevant < extensionID > com.freshplanet.AirAlert < / extensionID >
    3. Donkey has added to the Build Configuration of my project (for dependencies in IntelliJ)

    But I can't seem to solve the AirAlert in my code. I tried without success the two.

    import AirAlert;  import com.freshplanet.AirAlert; 

    Am I missing something here?

    Thank you!

    Fixed! After adding the NSAS in all configurations of generation under my settings Module in IntelliJ.

    I have about four different configurations, one for the deployment of the emulator for the device etc and me were only added the DONKEY to a deployment to the device that it was where I was interested to test.

    But after I've added it to all the others, I could solve

    import com.freshplanet.ane.AirAlert.AirAlert; 
    

    I hope this helps someone!

  • ANE native Flash cs6 publish problem

    Hello! I had a lot of chance to download and test flash cs6, but there are problems with the function of publication directly

    After that I added a donkey file, I get this error:

    DVFreeThread - hack CFMachPortCreateWithPort = 0x18fe90, fPowerNotifyPort = 0x19d5a0

    DVFreeThread - hack CFMachPortCreateWithPort = 0x1a96b0, fPowerNotifyPort = 0x18c5e0

    DVFreeThread - hack CFMachPortCreateWithPort = 0x19d0a0, fPowerNotifyPort = 0x19d5a0

    Invalid profile specified 'Application does not support the current profile.

    If I'm testing another file of donkey, I get this error:

    DVFreeThread - hack CFMachPortCreateWithPort = 0x32a460, fPowerNotifyPort = 0x319fc0

    DVFreeThread - hack CFMachPortCreateWithPort = 0x1454b0, fPowerNotifyPort = 0x12c400

    Unable to load the content because there was a problem loading the extension: error: request extension com.wolfknock.idialog is not supported for MacOS - x 86.

    two files of ane was supported on the cs5.5 version. cs6 then shouldn't besser 5.5?

    I use the air3.2 lion and mac default rendering...

    Maybe it's because the new ios sdk 5.1 option (check box)?

    If you prepare yourself the DONKEY, you can create an interface for this platform just so that you do not get errors. You can even make the implementation of work if you want. But yes, every time you see:

    "[something] extension is not supported on [program]"

    That is to say that the DONKEY did not alternative code for the platform on which it is run. In your case, the Simulator.

  • How to open epub file in iBooks using ANE (iOS)?

    Hello

    I tried to open epub file in iBooks using native Extensions.

    But, in application of AIR crashed at the DONKEY method call (following: OpenEpub).

    Problems with how to access the epub file?

    Or another problem?

    MacOS:10.6.8

    Xcode:4.2

    FlashBulder:4.6

    FlexSDK:4.6.0(default_bundle_version)

    TestDevice:1 st iPad (OS 5.0.1)

    iOSNativeCode (this code works on the application native iOS):

    #import <UIKit/UIKit.h>
    
    FREObject OpenEpub(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]){
    
        id delegate = [[UIApplication sharedApplication] delegate]; 
        UIWindow* window = [delegate window];
    
        UIButton* uiBtn = [[[UIButton alloc] init] retain];
        [window addSubview:uiBtn];
    
        NSString *fileToOpen = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"epub"];
        NSURL *url = [NSURL fileURLWithPath:fileToOpen];
        UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
    
        [docController presentOpenInMenuFromRect:CGRectZero inView:uiBtn animated:true];
        [docController retain];
    
         const char *str = "Success";
         FREObject retStr;
         FRENewObjectFromUTF8(strlen(str)+1, (const uint8_t *)str, &retStr);
         return retStr;
    }
    

    ANE fitness directory:

    ane/
         extension.xml
         key.p12
         platform/
              iOS/
                   iOSNativeCode.a
                   library.swf
                   test.epub
    

    extension. XML

    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
    ~~~~
    

    Thank you!

    Hi, I can open epub in iBooks using ANE!

    UIWindow * keyWindow = [[UIApplication sharedApplication] keyWindow];

    UIViewController * mainController = [keyWindow RootViewController exchangeAddSubViewFor];

    NSString * epubFileName = [[NSBundle pathForResource] pathForResource:@"test01" ofType:@"epub"];

    [epubFileName store];

    NSURL * url = [NSURL fileURLWithPath:epubFileName];

    [url retain];

    UIDocumentInteractionController * docController = [UIDocumentInteractionController interactionControllerWithURL:url];

    [docController store];

    RectDocC code = CGRectMake (800, 0, 0, 0);

    [docController animation inView:mainController.view presentOptionsMenuFromRect:rectDocC: YES];

    Thank you!

  • tests 3 months

    I just enjoy the three-month trial. Does include the free downloading of music?

    Yes, but once the trial is over, you must be a paid member to play any music that you have downloaded through the test.

    (145150)

  • Test RAM slot

    Is it possible to run a diagnostic on my MacBook Pro to determine if my RAM slot is bad, I was told one of the slots is burned and were released on a single.

    This: using Apple Hardware Test - Apple Support

  • having an iphone 6.  The ringtone does not make a noise.   I tested the ringtone and it sounds however when I receive a call or text or email, the Bell is silent

    I have an iphone 6.  The ringtone does not make a noise.   I tested the ringtone and it sounds however when I receive a call or text or email, the Bell is silent

    Hello Jimmy10 66,

    Thank you for reaching out to the Community Support from Apple. I know how it is important to follow your alerts, and I want to help you get your work again.

    Before we get too far, it's always a good idea to check that your 'secret' button just above your volume controls is not engaged. If you see that the yellow indicator go ahead and switch to the other position to turn it off.

    Alternatively, you can drag up from the bottom of the screen and make sure that the control of "do not disturb" is disabled.

    If those who are for the time off, go ahead and restart your phone and retest alerts. If the behaviour continues or if you encounter any problems, please reach out again and let the community know what other steps you have tried. The entire community is here to help.

    Best regards

  • Site XFINITY Speed Test, no results.

    I'm going on the XFINITY Speed Test site and try to get my test results, but start the speed Test does not appear?  I used this site many times in the past.

    Could be a cookie problem.

    If you use Safari...

    Go to the Safari menu bar, click Safari > Preferences then select the Privacy tab, then click on: Marches site Data , and then click remove all.

    Then quit and relaunch Safari and try again > http://speedtest.xfinity.com/

    I just tried the test and it works fine for me on Safari 10.0.

    If the deletion of cookies did not help, make sure that Flash is up to date.

    Open system preferences > Flash Player, click the updates tab, and then click: check now

  • Beta-Tester required for Sierra?

    What should I be a beta tester for download Sierra?  I tried several times to download and still get a message that it failed.

    Second, how to register for the beta test?

    Thanks Barry

    Is there other information with the message that "failed"?

  • Beta by OOKLA speed test

    Since the update to the latest version of Safari, I was not able to access beta.speedtest.net by OOKLA (the no flash version).  I can access it using my Macintosh plus former 10.5.8 running, but does not on my iMac running 10.11.6 with Safari 10.

    All attempts to enter this URL returns the speedtest.net (flash version).

    Anyone know this problem?

    I tried to clear my memory cache of Safari and flushing the DNS cache, but still no joy.

    .. .a update.

    I was able to successfully run the other speed tests no flash with Safari 10 (e.g., Verizon and other speed test), but trying to access beta.speedtest.net, I'm automatically redirected to the flash-based OOKLA test.

  • Conectivity test that my pc can't find my iphone so I'm not able to back up or synchronize it with my pc

    updated to ios 10.0.1 and now when I run the conectivity test my pc can't find my iphone so I'm not able to back up or synchronize it with my pc. everytime I connect my phone to my PC the pc revealed the companion phone which is no use to me as I want to get back to the top of my IPhone and syncing old content like movies without having to use my wireless

    You have restarted your computer?

    If iTunes does not recognize your iPhone, iPad or iPod - https://support.apple.com/HT204095

    Device are not not immediately after the upgrade - https://discussions.apple.com/thread/6573744 - try to restart

    Make sure you use the original or a spare cord Apple. Some third-party cables transfer that power and no data signal.apple.com/message/28002758#28002758

    https://discussions.apple.com/message/29154537#29154537 - removed then reinstalled iTunes application

    July 2016 Lawrence_Finch post - https://discussions.apple.com/message/30402529#message30402529 - connection dirty?

  • How to become a product tester Apple?

    Samsung wonder test and review, they are produced to my 2 million subscribers and I am a person of apple. They want to prove they are better and I want to prove that apple is better so is there a way Apple could send me one of the products out there to via samsung rule? Hope to talk to you soon from apple.

    It is a forum for technical support of users supported.  If you wish to contact Apple, information is available on the link in the lower right corner of this web page contact us.

    BTW, to my knowledge, that apple doesn't send material of public trials. They do it all the internal product tests. The sites you see looking at Apple products purchased these devices themselves, as part of the cost of the execution of an advertising review site or business

Maybe you are looking for