我正在使用LoopJ AndroidAsyncHttp来下载图像,但是当我尝试使用 HTTPS URL 时,我没有得到任何响应。代码:
AsyncHttpClient client = new AsyncHttpClient();
client.get(httpsUrlString, new BinaryHttpResponseHandler(allowedContentTypes) {
@Override
public void onSuccess(byte[] fileData) {
Bitmap bitmap = BitmapFactory.decodeByteArray(fileData, 0, fileData.length);
image.setImageBitmap(bitmap);
}
});