views:

93

answers:

2

Hello,

I know it is possible to develop a full flex application using AIR for android but what I need is to embed a flex component into an already existing classic java android application.

I found some flash players in java but they all either require a JFrame or include of specific windows dlls.

Is it even possible ? I found no info on the net about this

Thanks

A: 

Here is an example application with Flex and Android.

Bozho
That's an AIR application.
fenomas
how did you identify that?
Bozho
A: 

I can only think of three ways you might get flex to show up inside an non-AIR android app:

  1. If there was a native Android library or component that was capable of rendering Flash well enough for your purposes, or similarly a library that knew how to parse and render MXML (and AS3)
  2. If your app could embed an HTML view, which in turn displayed a page with embedded Flash that showed your component (the phone would need to be Android 2.2 and have Flash installed)
  3. If your Android app could directly embed the Flash player (if it's installed), or directly embed an AIR application, the way a windows app might embed an ActiveX component

Approach 2 would be the quick way, if it works - it seems feasible to me, but I've never tried it. With approach 1, such things ought to be technically possible in theory, but I don't know of any existing libraries that do what you'd need. The third option gets into hackish territory - I don't think that either Flash or Android docs will help you with it, but it could very well be possible... And if it is possible, it's probably the most robust solution.

fenomas
Thanks for this detailled answer ! I'll try to implement your second approach and see how it goes
Swan