Hi Team,

I am trying to validate URL by XMLHttpRequest in my Sencha Touch App,

Its successfully validated in IOS and worked correctly but having issue in Android.

Every times return with status response 0. even its return status 0 for google.com and other simple URL's

Here is my code snippet, Please have a look

validateUrl: function (arg1, arg2) {
var request = new XMLHttpRequest();
request.open('GET', arg2.URL, true);


request.onreadystatechange = function () {
if (request.status == 200) {
//code
}
else if (request.status === 404) {
//code
}
else {
//code
}
};
request.send();
}

Please suggest us to work further.

Thanks,