0
我似乎無法讓我的Apache服務器從我的android程序使用webview獲取其憑證。它不會要求憑證。我不明白我錯過了什麼。Android應用程序和Apache認證
這裏是我的代碼
package united.alert.mobile;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
public class UnitedAlertActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.loadUrl("http://unitedalert.info/m");
}
public void PasswordAuthentication (String userName, String password){
userName = "m*bile2012";
password = "1234567";
}
}