0
您好想知道如何在android中進入webview後返回到應用程序。Android:從Webview導航到應用程序
Java代碼
package shan.kvb;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
public class ShanActivity extends Activity {
/** Called when the activity is first created. */
WebView mWebView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mWebView = (WebView) findViewById(R.id.webview);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.loadUrl("file:///android_asset/index.html");
}
}
你想要什麼? – 2012-02-25 10:09:58