Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/190.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 应用程序启动时播放Flash文件_Android_Flash - Fatal编程技术网

Android 应用程序启动时播放Flash文件

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

是否可以播放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(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启动我的应用程序活动??