Example of a DONKEY?

Someone at - it successfully in place using an application native extensions? I have trouble finding a good example how to do that.

Long term, I want to create a DONKEY to integrate with ScoreLoop, so if someone wants to work with me on this project, the help would be more then great.

ANE manufacturing process has been greatly improved with the release of the NDK 2.0

Create a new project of BlackBerryTabletOS C/C++, and then click Basic settings screen, you can create a Native Extension of AIR space or Hello AIR Native.

The packaging is also greatly improved, once your project is configured, the export, select Extension Native BlackBerry PlayBook AIR, and in the next window just to your BB Tablet SDK and your donkey CFC Extension is packaged for you.

Tags: BlackBerry Developers

Similar Questions

  • What is the best third-party application to create flash standalone applications with?

    Hi all

    Can someone tell me what is the best third-party application to use Flash to create stand-alone applications.

    So far, I looked at the Zinc and SWFStudio. I realize that it is AIR too but I think that this application will only extend Flash to a degree.

    What I need is to get as much control of the MAC/PC/Mobile device as possible. Also, I need to be able to communicate with other applications exe/app on the local computer or through networks.

    I think it would be better to list what I need to do:

    1. listen to actions in other applications exe/app on the same system / network

    2. "sniff" directory and then list the contents

    3. check the other exe/app on the same system / network

    4 backup/update XML files on the same system / network

    5 register and retireve of data from a database on the same system / network

    6. read video files FLV, MPEG and many other possible formats

    7 be able to build for MAC/PC/Tablet? Mobile devices

    I think it's a good list to start with.

    Any help would be much appreciated here.

    Thanks in advance

    DAZ

    Adobe AIR has native extensions (ANE) just for that. For any feature the AIR framework has no you can write plugins that extend the capabilities of AIR. Here is a list of extensions for example, some are windows (Mobile only):

    http://www.Adobe.com/devnet/air/native-extensions-for-air.html

    Here is an example of a DONKEY Windows written in Microsoft Visual Studio 2010 C++ to tap into the .NET image processing:

    http://blog.magicalhobo.com/2011/09/12/air-3-native-extension-ImageProcessor/

    Incidentally I've used mProjector and Zinc and in between, they also support their own plugins for extended functionality.

    Although I greatly prefer Zinc. I used it in several projects and the library of extended features, it comes with is pretty extensive, documentation and help. They update a little more.

  • Terrible mistake 3500 with DONKEY Playbook

    Hi all

    I've been tinkering with AIR for Playbook native extensions, but have been unable to make it work. I kept getting error 3500 "the context of the extension has no method '. I scaled down and made the simplest use case, the DONKEY example hello world. Same result.

    I searched the forum, and the inclusion of the "bps" library does not help (). I tried debug, release configurations, cleaning explicitly compiled before build on NDK and Flash Builder files, remove and replace the mention of DONKEY, recreate all projects, nothing worked.

    My setup is FlashBuilder 4.6, Flex SDK 4.6 with Air 3.1, NDK 2.1.0 on windows 7. I even reinstalled the NDK and redownloaded the Flex SDK kit. The #3500 error keeps appearing.

    I can hardly believe that the NDK / FlashBuilder will be a such fault them so I gues I'm doing something wrong. If someone managed to successfully carry out and use a DONKEY in an AIR on Playbook application? So if you did something more to operate or you have a skeleton of a working draft that you could share?

    Thank you!

    Hey, thanks for the suggestion.

    I searched on this basis and found that it should add the following line in the bar - descriptor.xml:

    run_air_native

    In fact, this is specified in the BB10 dev guide, but there is no mention of this part of the Playbook. Anyway, problem solved!

    Thank you all for help.

  • Odd values of DONKEY ProductStore, price levels, Adobe

    Hello

    I've implemented the Adobe AIR IOS ANE ProductStore and his work ok bar return values when you query apps IPA products

    All returns bar very well the price of IPA

    2. title: unlocked: Premium

    priceLocale: en_IE@currency=EUR

    Price: 2.9899999999999998

    3. title: unlocked: Standard

    priceLocale: en_IE@currency=EUR

    Price: 1.9899999999999998

    As you can see, the IPA products use level 2 and 3 prices, which should be 1.99 and 2.99 - any ideas why it is up above?

    Thank you

    Pete

    I haven't used this DONKEY, but a simple solution would be to round the values to two decimal places (I think that toFixed (2) would do it?). At least with the two examples you provided, this should solve your problem.

    Based on the binary floating-point math as the use of modern processors cannot represent perfectly some decimal numbers, it may just be a rounding error that is inherent in the standard IEEE floating-point each modern processor. Similar to how 1/3 in decimal places requires infinite numbers, numbers that are easy to represent in decimal form are difficult to represent in binary computers (which they are).

  • Adobe will improve their donkey to 64 bit for iOS?

    I wonder if Adobe will move their iOS ANE to 64-bit, or if we have to if we have the source? Example, networkinfo, vibrator...

    Hello

    Now, we re-packed all 3 donkeys, namely NetworkInfo, Vibration, Gyroscope with 64-bit universal support. These are in addition the SDK donkeys of games that we had shared earlier.

    Donkeys update can be downloaded from the respective devnet articles listed below:

    http://www.Adobe.com/devnet/air/native-extensions-for-air/extensions/networkinfo.html

    http://www.Adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html

    http://www.Adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html

    Concerning

    Afonso

  • XPath query using DONKEY with AIR3.9 for iOS app

    We build an app for iOS using AIR 3.9 where we load and parse the xml document so that we can read the path of images and download stuff on iOS device. To resolve this issue, we found a solution using XCode via DONKEY where query using XPath such as 'PerformXPathQuery', 'PerformXMLXPathQuery', 'xmlReadMemory"etc.. The code runs and when build Simulator itself on mac computer. But when we're packing DONKEY with AIR 3.9, it gives the error that says that: -.

    Error occurred during the application of packaging:

    For architecture armv7 httpd Undefined symbols:

    "_xmlReadMemory", referenced from:

    _PerformXMLXPathQuery in libnet.example.download.a (ExampleLib.o)

    LD: symbol not found armv7 architecture

    Compilation failed during execution: ld64

    I tried connecting binary with libraries such as 'libxml2.dylib', 'libxml2.2.dylib' and libz.dylib + added header files libXML to the header in the build properties search path, but had no help.

    our AIR 3.9 platform xml looks like: -.

    " < platform xmlns =" http://ns.Adobe.com/air/extension/3.9 ">

    < > 4.0.0 sdkVersion < / sdkVersion >

    < linkerOptions >

    < option > - ios_version_min 4.2 < / option >

    < option > - frame UIKit < / option >

    < option > - framework Foundation < / option >

    < option > - framework CoreText < / option >

    < / linkerOptions >

    < / platform >

    can anyone suggest where we are going wrong!

    Thanks in advance

    Found the solution, it was missing the framework connects to the xPath library in platform.xml

    follow the instuctions from the link below: -.

    http://forums.Adobe.com/thread/1037904

    Thanks to the adobe team

  • Null values when using mechanism R.* for Android DONKEY (AIR 4.0.0.1240)

    So I wanted to try the new AIR 4.0 implementation to request resources in the native android extensions using R.* instead of getResourceId.  Through native code extension, anytime the R.* is used in native code android it returns an id for the resource, but the resource returned as null every time.  I guess that's because the resource id is not correct for a reason any.  I don't know if I'm doing something wrong or not.  When unpacking the apk, I could see that resources are correctly included in the correct folder.

    I had to make sure that when I exported my jar file of my android project that I didn't include the res or gen files.  The gen file contained the R.java file that is self-built android in the project, and when the packaging apk would throw an error indicating that the R.class was already added.  So delete the folder gen which set.

    Here's how I packed my DONKEY

    extension.XML:

    <extension xmlns="http://ns.adobe.com/air/extension/4.0">
              <id>com.example.anesample</id>
              <versionNumber>1</versionNumber>
              <platforms>
                        <platform name="Android-ARM">
                                  <applicationDeployment>
                                            <nativeLibrary>anesample.jar</nativeLibrary>
                                            <initializer>com.example.aneexample.NativeExtensionSample</initializer>
                                            <finalizer>com.example.aneexample.NativeExtensionSample</finalizer>
                                  </applicationDeployment>
                        </platform>
              </platforms>
    </extension>
    
    

    Platform.XML:

    <platform xmlns="http://ns.adobe.com/air/extension/4.0">
              <packagedResources>
                        <packagedResource>
                                  <packageName>com.example.anesample</packageName>
                                  <folderName>Android-Resources</folderName>
                        </packagedResource>
              </packagedResources>
    </platform>
    
    

    ane build order:

    adt -package -target ane NativeExtensionSample.ane extension.xml -swc NativeExtensionSample.swc -platform Android-ARM -platformoptions platform.xml Android-Resources -C Android .
    

    Folder structure:

    extension. XML

    Platform.Xml

    NativeExtensionSample.swc

    Android

    | __anesample.jar

    Library.swf

    Android-resources

    | __values

    page layout

    Drawable

    etc.

    (the rest of the resources in the res folder of android project)

    Note: I have other ALBUM included in the application that are built with older versions of AIR and not to use the new mechanism R.*.  I was wondering if it would cause issues or not as well.  (I will soon do tests that exclude these donkey)

    Hi cb_bkelley,

    You mention that you have to manually, check that R.class was not present in your exported jar. It seems that you use a standard Android project to build your pot.

    Could you please use a 'Android Library project' to build your jar? It would automatically that your pot has no R.class, apart from other important benefits as the generation of non constant resource ID.

    I would ask you please create your container using a 'Android Library project' and then share your results. I hope that things will work fine then.

    Thank you

    Daman

  • DONKEY to a platform on the mobile Flex project for iOS and Android

    I'm very new Flex Mobile projects and native extension.

    I have a big doubt... If I have a DONKEY which only works on iOS or Android, can I use it in a project for Android AND iOS?

    I mean, if I want to do something and I only found and DONKEY who works for the iOS and another DONKEY that works for Android, can I create only one project and according to the device, use one or the other? or do I have to create two different projects?

    Thanks in advance

    You can set both upward and when you publish simply comment out the code that does not, in this way, you always keep it as a single project, but you can use the ANEs as needed, I had to do this with the DONKEY SAI only for obviously Apple and AdMob DONKEY which at the time was Android only.

    Example of

    ANE Android Code
    blah blah blah
    iOS Code
    code code code

    Now when you publish to iOS comment things Android related

    ANE Android Code

    /*

    blah blah blah

    */

    iOS Code

    code code code

    Don't forget to update your donkeys included when you publish and delete those that don't apply and update XML files as needed. Its possible, but boring, it would be nice if it was automated or may be reported in some way so the Flash editor would automatically ignore it.

  • DONKEY - Vibration error: cannot access a property or method of a null object reference.

    Hi all

    I am trying to use the Vibration DONKEY but get the following error:

    IsSupported() vibration

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    Manufacturer of vibration: create a context of extension

    at com.adobe.nativeExtensions::Vibration$/initExtension() [/ users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:58]

    to com.adobe.nativeExtensions::Vibration$/get isSupported() [/ users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:43]

    views::Tour/onMarkerClick() [/ < path to project here > / src/views/Tour.mxml:204]

    The code I am using is directly from the example:

    var vibe: Vibration;

    if (Vibration.isSupported)

    {

    Vibe = new Vibration();

    Vibe.VIBRATE (2000);

    }

    Not really sure why this could happen. If anyone has any suggestions, it would be much appreciated!

    Thank you

    Alastair

    I thought about it. It seems that the native extension has not been properly packed (check the parameters of the project, Flex Build Path and Extension Native for the iOS and Android).

  • I just bought the last Apple TV - I can't seem to connect with the App Store and Siri is completely useless. This is an example of how Apple is unable to produce a useful product?

    I just bought the last Apple TV - I can't seem to connect with the App Store and Siri is completely useless. This is an example of how Apple is unable to produce a useful product?

    Hello

    Be sure to follow the instructions in this article to support > set up your Apple TV (4th generation) - Apple supported

  • I think I have to reset the SMC on my MacBook Pro, but I need MUCH more information on my MacBook Pro. For example, is the battery removable?

    I think I have to reset the SMC on my MacBook Pro, but I need MUCH more information on my MacBook Pro. For example, is the battery removable?

    Depends on what year it is.

  • Keyboard entry displays garbage - is OK in IE and Chrome. Abdelkrim will show for example 123' -! random characters every time

    When I type for example aaaaaaaaaaaa what follows is displayed asdfghjkl; ' '-the characters are different each time.

    This just started happening today. IE and Chrome doesn't and characters appear when they are typed.

    I uninstalled and reinstalled Firefox but still the same

    What security software do you have?

    Some security software a typo protection or Anti-Keylogger features that can cause this.

    Start the computer in Mode safe mode with network support Windows (on the startup screen, press F8) to see if that helps.

  • Page Firefox blocks, led busy, very low cpu on some sites. I have an example.

    Firefox 41.0, win 10 Pro x 64.
    Recently (possibly before v.41) pages Firefox hang with very low cpu on some sites.
    Firefox itself is not hung, but for this tab, the indicator of the clock continues ticking.
    I open the problem while another tab has the problem.
    Some data on the website are generally displayed (context?).
    There may be a redirect/refresh any (full proposal).
    Note: in this case, the web site is grayed out.
    Example: https://www.code42.com/store/
    Problem is when I navigated to the URL above. Also occurred when I pasted the URL.
    Works in Version Chrome 45.0.2454.101 m.
    Working on board 20.10240.16384.0

    Note: right now, I'm trying to upload an image, the download is not finished. Ticks of the clock.

    I will try to present this anyway.

    I was about to follow the instructions in the above message, but tried the web site to verify that the problem continues. There can be no. I don't know what I've done (maybe I cleared the cache I've been poking).
    Anyway. Please close this incident.
    And thanks for your help.

  • Phone wants to know a port number. What is c? Their example. 0101

    I am going through the pain of installing my email on my phone. I was able to fill in all, but what is called a port number. The phone gives an example of 0101

    Hello

    It's not something that I think is related to Firefox for Android, but I'll do my best to help.

    The e-mail on your application software a Port number to help it connect to your mail service. Each mail service provider has different settings, so I recommend you contact or have a look in their help files for orientation. This will usually lies in the sections to make the connection by using the third-party e-mail software.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • Firefox does not comment based on Facebook on all websites (for example Huffpost): I tried the safe mode, disabling anti-ad... nothing works.

    I can get on FB and post. etc., but sites that use them commenting on do not display comments. I've tried safe mode, re - install Firefox: not to go.

    It's complicated. There are many links in the chain...

    You want to check if Firefox is actually sending a request to Facebook many different servers and receive a normal response? Here's how you can try it.

    While watching the HuffPost (or other) page, press Ctrl + Shift + k to open the Web Console in the lower part of the tab along its top edge, click Network. Then reload the page and network monitor should start to fill with dozens of URL in the order that makes Firefox the application.

    After he calms down, you can scroll down or click on the header of the column field sort by site and search queries to these areas. They were called in the order in my little test, among a bunch of other things:

    For example, if there is no request to connect.facebook.net, then a script blocker or a blocker Tracker can kick in. If there is no request for html pages, then the script could be at fault or another type of block can be considered.

    Note: I stay connected on Facebook, so being connected may have some influence on this point that I'm not aware of.

Maybe you are looking for

  • Windows does not load up - error System 32 drivers

    Hi there, I hope there, can someone help me! When I loaded my PC today I get to a point where the windows loading flag rises and my PC auto restarts and the cycle starts again. When I try to load my windows in safe mode I get the following message (s

  • Down, I can't load KB2691441 - C 8007371 error

    I am working on a Dell Inspiron - 1420 Vista SP2 OS. I have this last update to install until I can return the system to my daughter!

  • Windows Vista won't allow divx player to open.

    Have control of disabled user account, but windows do not allow.

  • Msvcr71.dll failed

    I can't open my AOL icon and get to my E Mails because this application has failed. I tried to run the solution provided by Marilyn. He certainly repaired some flaws, but could not fix this specific one, so I'm not off better... any other suggestiion

  • To learn how to play DVD movies in Windows Media Center

    Original title: WINDOWS MEDIA CENTER INFORMATION: I have several of my own movies on DVD. I would like to put them on media center to windows. everyone did this, and what would be the best or recommended software to use. I have check the videos on yo