Android 闪存文件未显示在屏幕上?
我使用webview控件在应用程序中显示flash.swf文件。 当我运行应用程序时,屏幕上会显示整个白色屏幕 这是我的密码Android 闪存文件未显示在屏幕上?,android,flash,Android,Flash,我使用webview控件在应用程序中显示flash.swf文件。 当我运行应用程序时,屏幕上会显示整个白色屏幕 这是我的密码 public class flash extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceS
public class flash extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
setContentView(R.layout.main);
String url ="file:///android_asset/beautiful.swf";
WebView webview = (WebView) findViewById(R.id.flash_webview);
webview.getSettings().setPluginsEnabled(true);
webview.getSettings().setAllowFileAccess(true);
webview.loadUrl(url);
}
}
xml文件包含webview控件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<WebView
android:id="@+id/flash_webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</RelativeLayout>
我还添加了Android:hardwareAccelerated:true
在清单文件中
我仍然被白色的屏幕卡住了
请帮忙
提前谢谢。您是否尝试过将.swf文件嵌入html文件并加载此html?您是否尝试过将.swf文件嵌入html文件并加载此html?在我发布此Android时,它仍然有flash。但是现在这个选项不再有用了。在我发布这个Android的时候,它仍然有flash。但是现在这个选项不再有用了。