是否有可能在一个纯Java的Andr​​oid应用程序中嵌入Flex组件? [英] Is it possible to embed a flex component in a pure java android application?

查看:144
本文介绍了是否有可能在一个纯Java的Andr​​oid应用程序中嵌入Flex组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是可以开发利用空气中充满Flex应用程序的Andr​​oid,但我需要的是嵌入Flex组件到已有的java经典的Andr​​oid应用程序。

我发现了一些Java中的闪存播放器,但他们都要么需要一个JFrame或包含特定的Windows DLL的。

它甚至有可能?我发现这个网

没有资料

感谢


解决方案

我只能想到的三种方式你可能会得到柔性显示了一个非AIR Android应用内:


  1. 如果有一个原生的Andr​​oid库或为能够呈现的Flash不够好,你的目的,或类似的知道如何解析和渲染MXML(和AS3)库的组件

  2. 如果您的应用程序可以嵌入HTML视图,从而显示的页面与嵌入式闪存的显示组件(电话将需要Android 2.2及安装Flash)

  3. 如果您的Andr​​oid应用程序可以直接嵌入Flash播放器(如果它安装),或者直接嵌入AIR应用程序,一个Windows应用程序可能会嵌入ActiveX组件的方式

方法2将是快速的方法,如果它的工作 - 在我看来是可行的,但我从来没有尝试过。有了方法1,这样的事情应该在技术上是可行的理论,但我不知道,你需要做什么任何现有的库。第三个选项进入hackish的领土 - 我不认为Flash或Android的文档会帮助你,但它很可能是可能的......如果可能的话,它可能是最强大的解决方案

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

解决方案

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.

这篇关于是否有可能在一个纯Java的Andr​​oid应用程序中嵌入Flex组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆