public void test() {
RequestUtils request = new RequestUtils(this);
request.setRequestImageListener(new RequestUtils.RequestImageListener() {
@Override
public void requestImageSuccess(Bitmap bitmap) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos);
if (baos != null) {
Log.d(TAG, "ceu");
}
}
});
request.getImageRequest("https://a.tile.openstreetmap.org/7/105/47.png");
}
测试
最新推荐文章于 2024-06-10 22:21:04 发布