Android 应用程序启动时播放Flash文件
是否可以播放flash文件作为我的应用程序的启动?我就像flash文件在应用程序启动时自动播放,然后跳入应用程序!我该怎么做?请举例说明,制作SplashActivity并尝试以下操作:Android 应用程序启动时播放Flash文件,android,flash,Android,Flash,是否可以播放flash文件作为我的应用程序的启动?我就像flash文件在应用程序启动时自动播放,然后跳入应用程序!我该怎么做?请举例说明,制作SplashActivity并尝试以下操作: WebView webview=(WebView)findViewById(R.id.web_play); File decfile = new File("/mnt/sdcard/flashplay/temp/test.swf"); Uri uri = Uri.fromFile(decfile); if
WebView webview=(WebView)findViewById(R.id.web_play);
File decfile = new File("/mnt/sdcard/flashplay/temp/test.swf");
Uri uri = Uri.fromFile(decfile);
if(decfile.exists()){
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setPluginsEnabled(true);
webview.getSettings().setAllowFileAccess(true);
webview.loadUrl(uri.toString());
}
这里有一个全面的答案:参考链接中的html是关于什么的?该示例加载一个webview,其中包含一个包含swf对象的html文件。根据下面的答案,我想你可以直接加载swf而不需要html页面。谢谢!在下面的代码行之后,我将能够通过intent启动我的应用程序活动??