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);

然后加载图片

上一篇:TSSAO Temporal Screen-Space Ambient Occlusion (Unity3d 5 示例实现)


下一篇:MATLAB读取一个文件夹下的多个子文件夹中的多个指定格式的文件