0
mysqlデータベースのhttp応答値をローカル文字列と比較しようとしましたが、文字列は同じですが失敗します。私は何かを逃したことがあります、ヒントがおそらく助けるかもしれません。HTTPクライアントから文字列への値の比較
ResponseHandler<String> handleResponse = new BasicResponseHandler();
String phpEchoVal = httpclient.execute(httppost, handleResponse);
String containEmail = phpEchoVal.toString();
txtInfo = (TextView)findViewById(R.id.txtVInfo);
if ((containEmail.equals("success"))){
txtInfo.setText(containEmail);
}else {
txtInfo.setText("Exist");
}
どういうことが分かっていますか? – m0skit0
Log.d( "test"、 "containEmail:" + containEmail);あなたはおそらく理由を見るでしょう。 – Joe
ログは03-22 12:27:52.903:D/test(304):containsEmail:。私はcontainEmail電子メールが割り当てられていないと思う。 – GrimJov