Android对ImageOperations和AWS S3下载的奇怪行为
要用假名来保护隐私 我的代码是:Android对ImageOperations和AWS S3下载的奇怪行为,android,amazon-s3,amazon-web-services,Android,Amazon S3,Amazon Web Services,要用假名来保护隐私 我的代码是: bitmap = ImageOperations(ImageViewer.this, url, "image.jpg"); 其中url类似于: 我正在使用AWS S3查询字符串请求身份验证替代方案下载该文件 我加载了一个活动,该活动下载图像并在ImageView中显示位图 For the first time, it loads fine and there is a bitmap. For the second time, it loads and I g
bitmap = ImageOperations(ImageViewer.this, url, "image.jpg");
其中url类似于:
我正在使用AWS S3查询字符串请求身份验证替代方案下载该文件
我加载了一个活动,该活动下载图像并在ImageView中显示位图
For the first time, it loads fine and there is a bitmap.
For the second time, it loads and I get null.
For the third time, it loads fine and there is a bitmap.
For the fourth time, it loads and I get null.
这种交替行为是非常一致的。以前有人经历过这种情况,知道发生了什么吗
我用一个无限制策略的bucket进行了尝试,在这个bucket中,您可以直接下载而无需身份验证,而且它一直都有效