I have a problem in android,
this project get some before,
but now the webapi turns http to https and it can't works,
I have no idea how to fix it,
private AQuery aq;
aq = new AQuery(this);
aq.ajax(url, String.class, new AjaxCallback<String>() {
public void callback(String url, String string,
AjaxStatus status) {
if (status.getCode() == 200 && !string.equals("")
&& result.indexOf(Constants.STATUS) != -1) {
StatusMsg statusMsg = JSONParserHelper
.statusMsgParser(result);
if (statusMsg != null) {
String showMsg = JSONParserHelper.getStatusMsg(
Register.this, statusMsg);
Message msg = mHandler
.obtainMessage(1, showMsg);
mHandler.sendMessage(msg);
} else {
Message m = mHandler.obtainMessage(2,
getString(R.string.link_failure));
mHandler.sendMessage(m);
}
} else {
Message m = mHandler.obtainMessage(2,
getString(R.string.link_failure));
mHandler.sendMessage(m);
}
}
;
});
does anyone can tell me how to get https?
or I have to use SSLSocket to fix it?