开发者

How to load flash in Android?

HI, i want to load a flash file in my android application. Can any o开发者_JAVA技巧ne guide me how to do?


A flash file requires the Flash Player runtime to...well...run. The ability to run flash files is available to the Android platform in two forms.

  1. As a plugin that renders Flash content in the native Android web browser(just like your browser on your desktop computer), or by utilizing the Android UI webView API and loading an HTML file with an embedded Flash file. In other words, create a webview in your Android application and load it with the remote or local URL of HTML file with the embedded flash content. Essentially you are putting a stripped down version of the Android browser into your application to render the Flash file.

  2. Adobe AIR for Android. You could rewrite your Android application into a Flex Mobile Application, if your application relies heavily on Flash, and then run it directly as and AIR application and just us the AIR API's to load it.

A quick search on Google will show you code examples on how to write the HTML file to embed the Flash file, and it will tell you how to us the Android API webview to load said HTML file.

Good luck, let me know if you have any trouble.


You need Android 2.2 or later. It has built-in flash support.


If you are running Android 2.1 you just cant do it. Flash is only available on Android 2.2, so you have to upgrade it first.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜