現在、基本的にWebアプリを表示する独自のアプリを作成しています。私はEclipseを持っており、Androidプラグインも持っています。
しかし、基本的にオンラインのものを表示する Web アプリを取得するにはどうすればよいでしょうか? 100% フレームか何かを探しています。このオプションがどこにも見つかりません。
私を助けてください。
Android WebViewを使用して、Android アプリケーションで Web サイトを表示できます。
main.xml:
<?xml version="1.0" encoding="utf-8"?>
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
.java コード:
String websiteUrl = "Your URL goes here";
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.webview);
webView = (WebView) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(websiteUrl);
}
それが役に立てば幸い。