2

アプリケーションの起動時にフラッシュ ファイルを再生することはできますか? 私は、アプリケーションの起動時にフラッシュファイルが再生され、アプリケーションにジャンプするようになります! これどうやってするの?例をいただければ幸いです

4

1 に答える 1

1

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());
}
于 2013-09-13T07:46:39.313 に答える