android 2.2 open swf in browser

by timeToEat » Thu, 08 Jul 2010 02:32:16 GMT

Sponsored Links
 I have a swf file on the sdcard and I wrote a html file flash.html
with the swf file embeded. The only way to open it now is
1) open the browser
2) type in file:///sdcard/flash.html The swf runs fine.

But if use the code list below:
Uri uri = Uri.parse("file:///sdcard/flash.html");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
It shows the error: The application has stopped unexpectly.

I also tried the following code using WebView:
WebView browser = (WebView) findViewById(;

The Webview showed up, but the area should start the swf is empty.

So is there a way to open the html through code?

I also think if there is a way to open the android browser using
ACTION_VIEW by a simple html then reset the URL to be "file:///sdcard/
flash.html" through code?


android 2.2 open swf in browser

by Raju Bitter » Thu, 29 Jul 2010 19:07:41 GMT

 You have to use WebSettings to activate the plugins for a WebView.

        WebSettings settings = webView.getSettings();


Sponsored Links

Other Threads

1. What is ment by INTEGRATED browser?

I am struck at one concept. What is the meaning of integrated browser?
and can i replace my own developed browser on android?

and should all browsers that run on android should be developed by
using Webkit?

what exactly webkit is?


2. Search Widget: Add own engine


just did not find the right terms for a proper Google search for this.

What are the Keywords, that I have to use to get some documentation,
if I want to add an own search engine behind the default search bar?
Or just the link ;)

Contacts are added, app names, maybe content of SMS,... How do I add
my own?
(not configuration; I want to implement something, e.g. as deliverable

Best regards,



4. V4L2:"/dev/video0" is not generated when USB Camera is connected

5. Timestamp headers on Sent E-mail - Diferent Languages [BUG]

6. Contacts SyncAdapter issues

7. Building test cases from source code.