Android-- ImageLoader-- UIL doesn't support scheme(protocol) by default [pg].

在ImageLoader加载图片是, 地址是容易出错的,特别是本地图片:

String imageUri = "http://site.com/image.png"; // from Web

String imageUri = "file:///mnt/sdcard/image.png"; // from SD card

String imageUri = "content://media/external/audio/albumart/13"; // from content provider

String imageUri = "assets://image.png"; // from assets

String imageUri = "drawable://" + R.drawable.image; // from drawables (only images, non-9patch)

上面是常见的几种地址 获取图片地址时要进行 地址拼接

imgLoader.displayImage("file:///"+Environment .getExternalStorageDirectory().toString() + File.separator + Const.TEMP_FILE, choosen_image);

然后加载图片

你可能感兴趣的:(Android-- ImageLoader-- UIL doesn't support scheme(protocol) by default [pg].)