Menu
  • HOME
  • TAGS

How to include a android native extension (.so) into an AIR native extension (.ane)?

android,jar,air,jni,air-native-extension

It becomes a bad habit of me to answer my own questions, but anyway... Sometimes the docs can help. Here in the adobe docs I finally found the solution. Simply copying the .so to the libs/armeabi-v7a folder in my ane package directory includes the lib into the ane, so I...

Sending NSImage to AS3. AIR Native Extension(ANE)

objective-c,osx,actionscript-3,air-native-extension

In addition to your solution, you can create a BitmapData in native code like that: // first get those values from NSImage FREObject contructorArguments[4] = { width, height, transparent, fillColor }; // create an instance of BitmapData FREObject freBitmapData; FRENewObject((uint8_t *)"flash.display.BitmapData", 4, contructorArguments, &freBitmapData, NULL); // now acquire the bitmap...

Detecting iOS/Android native accesibility features via Adobe AIR

android,ios,actionscript-3,air,air-native-extension

OK, so it turns out that this is certainly possible on both iOS and Android. I ended up writing a native extension to accomplish this, in case anyone sees this thread as a reference. I can't post the whole thing yet, but figuring out if the user is using accessibility...

Two ane file conflict in one flex mobile application

android,ios,actionscript-3,flex,air-native-extension

If you have an ANE that only supports Android it won't be available at all when run in Ios (same is true for Ios). If it has a default implementation its classes will be available but if it doesn't then its classes will just not exist in that scope and...

Text to bitmap wrong color

java,android,air-native-extension

It seems that the red and blue color channel are switched. Fixed it by reversing the blue and red color chanel: private static Bitmap reversColors(Bitmap b){ int width = b.getWidth(); int height = b.getHeight(); int[] pixels = new int[width * height]; b.getPixels(pixels, 0, width, 0, 0, width, height); int[] finalArray...

Latest Google Services (v. 21) ANE + AIRMobile native extension failed resolving interface

android,mobile,google-play-services,air-native-extension

I managed to solve partially this problem. I asked the same question on starling-forum and it's member tsangwailam suggested me to replace the dx.jar in AIR SDK to the new one in Android SDK. replacing dx.jar really helped. I took %ANDROID_SKD%\sdk\build-tools\19.1.0\lib\dx.jar and copied it into %FLEXSDK%\lib\android\bin\dx.jar and the extension began...

Adobe Air 4.0 Native Extension with Google Play Services

android,admob,air-native-extension

I finally found the problem solution. The problem is in the process of exporting native extension to .jar file. More specifically, when I export my android project to .jar file, I made a mistake. I select the whole java project files to export into .jar file, including gen folder which...

Namespace 3.6 in the application descriptor file should be equal or higher than the minimum version 13.0 required by the Flex SDK

flex,flash-builder,air-native-extension

The fix: Change the namespace on the second line of /src/ANESampleTest-app.xml FROM: <application xmlns="http://ns.adobe.com/air/application/3.6"> TO: <application xmlns="http://ns.adobe.com/air/application/13.0"> A brief and incomplete background: The file /src/ANESampleTest-app.xml is the ‘application descriptor file’. When using the project files downloaded with the tutorial (that contained the 3.6 reference), the builder did not find this...

Flash CC Air for mobile stripping Native extensions from app. xml

flash,air,air-native-extension

Are you using Flash Pro CC as the IDE? If so could you check that in the target settings for Android > Permissions tab > that the 'Manually manage permissions' checkbox is ticked before you publish the app. Also, possibly move the ANE's to a new location on your drive...

Adobe AIR Native Extension : By default, does an ANE run in another thread?

multithreading,air,air-native-extension

The main function calls of an ANE run in the main thread. You can however start threads and use the async dispatch event command to communicate back to the Actionscript.