Combine ActionScript / Flex Air Android Project with Java Android Project

Background: I have an Android Air project written in ActionScript using Flash Builder and an Android Java project using Eclipse. I want to merge these two projects which I want to integrate the Air project into my Java Android project. I don't want to have two standalone projects.

The My Air project uses the Adobe Media Server protocol and rtmp to publish / play live broadcasts.

Several approaches I've tried:

  • Extension Adobe Native Extention . I can call native Java code from my Air project, but this is the opposite of what I want to do.

  • Explicit Java interface . I can use it to call c / C ++ / assembly ... but I haven't seen JNI call Air project

  • Android Webview . Created an html file inserting the .swf file of my Air project and using Android Java Webview to run the .swf file directly. But it doesn't work anymore and I think Android no longer supports flash player after 2011.

Question:

  • I am wondering if what I want to do is possible. If so, can anyone give me some pointers?
  • I can package my Air Android project to .apk. But I haven't found a way to use an existing .apk from another android project.
  • Do I have to use a cross compiler to make the Air project in .jar?

Thank!

+3


source to share


1 answer


  • As you have correctly defined ANE, this is the opposite of what you want, you can trigger your AIR with Java and that's all you can do. In short, you cannot integrate a compiled AIR into a Java application.
  • Even in Java, you cannot combine two applications into one APK .
  • If you can find such a converter, then this appears to be your only possible course of action.


+1


source







All Articles