Reputation: 205
Can we run a flash animation inserting the .html, .swf and .fla files in the assets folder to run flash animation in Android device?Is it possible? Thank you
Upvotes: 2
Views: 5140
Reputation: 1133
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.
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.
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.
Loading a locale resource:
webview.loadUrl("file:///android_asset/UI/mylocalhtmlfile.htm");
Upvotes: 2