Background: I have a Air Android project written in ActionScript using Flash Builder, and a Android Project in Java using Eclipse. I want to combine these two project, which I want to integrate the Air project into my Java Android project. I don't want to have two standalone projects.
My Air project use Adobe Media Server and rtmp protocol to publish/play live streams.
Several Approaches I have tried:
Adobe Native Extention: I can call Java native code from my Air project but this is the opposite of what I want to do.
Java Native Interface: I can use it to call c/c++/assembly... but I didn't see how JNI calls Air project
Android Webview: Created a html file embed the .swf file of my Air project, and using Android Java Webview to run the .swf file directly. But it is not working anymore and I guess is Android is not supporting flash player anymore after 2011.
Question:
- I'm wondering if what I want to do is possible. If so, could anyone give me some directions?
- I can package my Air Android project to .apk. But I didn't find a way to use a existing .apk from another android project.
- Do I have to use cross-compiler to make my Air project into .jar?
Thank you!