imapbuilder で作成したインタラクティブ マップを表示しようとしています。問題は、ウェブビューにロードすると、空白の画面が表示されることです。私はすべてを試しました(私のデバイスがフラッシュを処理できないかどうか疑問に思っています.sgs2とMotorola xoom2 10.1inタブレットの両方にICSがあります)。これがXMLの私のコードです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<WebView android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</LinearLayout>
私の .java;
import android.os.Bundle;
import android.app.Activity;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebView;
public class MainActivity extends Activity {
private Handler mHandler = new Handler();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags
(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_main);
WebView view=(WebView)findViewById(R.id.webview);
view.getSettings().setPluginsEnabled(true);
view.loadUrl("file:///android_asset/Interactive.htm");
view.addJavascriptInterface(new MyJavaScriptInterface(), "Android");
}
final class MyJavaScriptInterface
{
public void ProcessJavaScript(final String scriptname, final String args)
{
mHandler.post(new Runnable()
{
public void run()
{
//Do your activities
}
});
}
}
}
私の資産フォルダーには、Interactive.htm とサブフォルダーがあり、フラッシュ ファイルと、使用したソフトウェアからエクスポートされたものが含まれています。それで、どこが間違っているのですか?