Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.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 闪存文件未显示在屏幕上?_Android_Flash - Fatal编程技术网

Android 闪存文件未显示在屏幕上?

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

我使用webview控件在应用程序中显示flash.swf文件。 当我运行应用程序时,屏幕上会显示整个白色屏幕

这是我的密码

   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。但是现在这个选项不再有用了。