tags:

views:

1738

answers:

4

Does Android support flash? If yes then i need an example code to play a flash file. Wonder if we can play a flash file in WebView?

Waiting for reply

A: 

I don't believe this is yet possible. I believe the Flash Player 10.1 release is supposed make this possible which is supposed to be released sometime in 2010. I've also heard that FP 10.1 is going to require Android 2.0.

Chris Gutierrez
Maxood
+1  A: 

Until Adobe releases 10.1 for Android, your only chance is if you have a HTC terminal. I wrote about it in Running Flash apps on Android/HTC Hero.

The thing is that the player that comes with the Hero is a HTC application, not from Adobe. Also it is not part of the standard Android release.

Zárate
Maxood
A: 

Actually the HTC Hero is the first Android device with Flash.

Here is my guess at some code to play a flash file:

Intent intent = new Intent();  
intent.setAction(android.content.Intent.ACTION_VIEW);  
File file = new File("/sdcard/SomeGame.swf");  
intent.setDataAndType(Uri.fromFile(file), "flash/*");  
startActivity(intent);
David Glass
Is this just a random guess or a tried and tested code? As i have tried to play flash file in a webview but couldn't succeed as flash plugin is not available in android.Any clue?
Maxood
A: 

Does anyone have update on this topic after 2.2 release?

I'm using Android SDK 2.2 (emulator and eclipse). And launched 'browser' app, and browser to the URL which has flash swf embedded, but I couldn't see it.

Am I missing something??

Thanks in advance. fsustim

fsustim