if (tryConnection(client, "https://" + mUrl + AccountUtils.STATUS_PATH)) {
return new RemoteOperationResult(RemoteOperationResult.ResultCode.OK_SSL);
if (tryConnection(client, "https://" + mUrl + AccountUtils.STATUS_PATH)) {
return new RemoteOperationResult(RemoteOperationResult.ResultCode.OK_SSL);
Log.d(TAG, "establishing secure connection failed, trying non secure connection");
client.setBaseUri(Uri.parse("http://" + mUrl + AccountUtils.STATUS_PATH));
Log.d(TAG, "establishing secure connection failed, trying non secure connection");
client.setBaseUri(Uri.parse("http://" + mUrl + AccountUtils.STATUS_PATH));