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);
startActivity(intent);
It shows the error: The application has stopped unexpectly.

I also tried the following code using WebView:
WebView browser = (WebView) findViewById(R.id.list_web);
browser.loadUrl("file:///sdcard/flash.html");

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();
        settings.setPluginState(PluginState.ON);




>


Sponsored Links


Other Threads

1. extending media framework on android 2.2 / froyo (stagefright ?)

hi,
I am interested in adding support for some video containers not
supported by default in a video player application.
flash player plugin being able to play video on froyo, I suppose there
are some api to extend the media framework.
I've heard of stagefright but didn't find much details.

where can I find details on how the flash player works ? does it use
publicly available api ? public or not, how can I access them ?

thanks.

-- 

2. OOT : ipad buat nelp

mau liat gaya orang bule nelp pake ipad

http://www.youtube.com/watch?v=aoqAIwbcFtM

-- 
Ichan
send by tengtop core i3
blum lunas kriditan

-- 
"Indonesian Android Community [id-android]" 

3. mirink @ green cafe bandung

4. Penampakan Samsung Galaxy Android GT-I9000

5. Android 2.2 Froyo Berjalan di Nokia N90

6. Issue in downloading Android Sourc

7. Issues in downloading android source code(Repo init )