Search code examples
androidactionscript-3apache-flexairair-native-extension

Adobe air 3.0 ANE for Android, null ExtensionContext?


I've been working with the vibration example from Adobe for Air 3.0's native extensions on Android.

I have the ANE compiled and the .apk packaged.

The problem I'm having is the actionscript library is getting a null ExtensionContext.

I tried creating the .apk with adt -package -target apk-debug so that I can see the actionscript traces in logcat and that's where I'm finding the null error.

extContext = ExtensionContext.createExtensionContext("com.adobe.Vibration", null);

extContext is null and crashes on the following .call() method.

All of the source is stock from the examples, I haven't changed anything.

Does anyone have any experience with getting one of Adobe's ANE examples working on a windows machine? Most of the examples are for Mac.


Solution

  • Good lord. What a waste of a week.

    I was using a tutorial from gotoandlearn.com that was telling me to, in by build script, use a jar command to put my native extension in to a jar.

    I simply used the .jar that's automatically built in the NativeAndroid/bin/ folder and all is well.

    It turns out, that tutorial is out dated and not really useful for the build anymore.