我想有一個按鈕,按下顯示網頁,我用的是標準的做法與WebViewClient和WebChromClient像這樣: final Button revsButton = (Button) this.findViewById(R.id.buttonReviews);
revsButton.setOnClickListener(new OnClickListener() {
public v
我正在創建一個應用程序,其中有許多不同的活動都有WebView。但是所有WebView使用相同的WebViewClient。目前,我正在爲每個WebView創建一個new WebViewClient並使用它。我想知道做這個最好的方法是什麼。在應用程序級別放置一個static final WebViewClient對象並將其用於每個WebView是否是一個好主意,還是有其他更好的/正確的方法嗎?
我做了一個應用程序,向Ilias服務器發出一個帖子請求,我收到響應並打開它在webview上,我的問題是,如果我導航,當我點擊一些鏈接它不會保存我的憑據,並且「我沒有登錄」並且不繼續。 下面是代碼: public class ilias extends Activity {
WebView webView;
/** Called when the activity is first