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