UIL默认不支持scheme(协议)你应该自己实现这个支持

你好,我从相机捕获图像,并将其保存到SD卡并通过通用图像加载程序加载,但每次我得到一个错误

09-20 14:38:22.617: E/ImageLoader(16626): UIL doesn't support scheme(protocol) by default [/mnt/sdcard/temp_photobooth.png]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...)) imgLoader.displayImage(Environment .getExternalStorageDirectory().toString() + File.separator + Const.TEMP_FILE, choosen_image); 

任何人都可以帮助我,我该怎么办呢?

如果你正在从SDCARD加载图像,你应该用file:///作为path的前缀。

 String imageUri = "http://example.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);