problem about air-native-extension-Collection of common programming errors
paleozogt
c++ air-native-extension
Before I ask my question, I want to say I realize there are some “similar” questions but nothing (that I can find) that specifically answers my question, so here goes.I’m wondering if the following is possible. Lets say I create a new instance of a class, like so:MyClass* classInstance = new MyClass();I’m wondering if it’s possible to store the raw memory address in say, a primitive type like an int. Then, somewhere in C++ no-mans-land where I do not have a pointer to classInstance, I can do something like t
Thomas Pujolle
flash command-line mxmlc air-native-extension
I need to setup a continuous environment allowing to build air apps, and so I have to setup some ANT script to compile my flash then package it.I came across the flex task mxmlc which is the base tool to build .swf.I have setup a base build file using this tool, but my project uses .ANE, and I cannot get them to be included as my swf compiles. I end up with errors as many classes are unknown.Here is my b
Hans
android flex google-maps air-native-extension
I’m creating a native extension that shows a native Google Map from a Flex-based AIR application. You can watch lee brimelow’s demo to get the idea: https://plus.google.com/110495278155587072613/posts/degSYVx8423I got a working demo of a native extension, just to show an Activity with some buttons, but I got stuck when I tried to show the map. Here is the exception I’m getting on setContentView(layoutID):05-08 11:48:40.624: I/System.out(27917): WebViewActivity.onCreate failed with error:05-08 11:48:40.634: I/System.out(27917): “android.view.InflateException: Binary XML file line #9: Error inflating class fragment”05-08 11:48:40.644: W/dalvikvm(27917): threadid=1: thread exiting with uncaught exception (group=0x40fd8468)05-08 11:48:40.654: E/AndroidRuntime(27917): FATAL EXCEPTION: main05-08 11:48:40.654: E/AndroidRuntime(27917): java.lang.RuntimeException: Unable to start activity ComponentInfo{air.GoogleMapsApp.debug/com.trasys.googlemaps.WebViewActivity}: java.lang.RuntimeException: Attempting to create multiple DataRequestDispatchers05-08 11:48:40.654: E/AndroidRuntime(27917): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)05-08 11:48:40.654: E/AndroidRuntime(27917): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)05-08 11:48:40.654: E/AndroidRuntime(27917): at android.app.ActivityThread.access$600(ActivityThread.java:151)05-08 11:48:40.654: E/AndroidRuntime(27917): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1331)05-08 11:48:40.654: E/AndroidRuntime(27917): at android.os.Handler.dispatchMessage(Handler.java:99)05-08 11:48:40.654: E/AndroidRuntime(27917): at android.os.Looper.loop(Looper.java:155)05-08 11:48:40.654: E/AndroidRuntime(27917): at android.app.ActivityThread.main(ActivityThread.java:5454)05-08 11:48:40.654: E/AndroidRuntime(27917): at java.lang.reflect.Method.invokeNative(Native Method)05-08 11:48:40.654: E/AndroidRuntime(27917): at java.lang.reflect.Method.invoke(Method.java:511)05-08 11:48:40.654: E/AndroidRuntime(27917): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)05-08 11:48:40.654: E/AndroidRuntime(27917): at com.android.internal.os.ZygoteInit.main(ZygoteInit.j
Originally posted 2013-11-09 23:21:28.