Complementando, esse é o meu loader:
public static void initImageLoader(Context context) {
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
.threadPriority(Thread.NORM_PRIORITY - 2)
.denyCacheImageMultipleSizesInMemory()
.discCacheFileNameGenerator(new Md5FileNameGenerator())
.tasksProcessingOrder(QueueProcessingType.LIFO)
.writeDebugLogs() // Remove for release app
.build();
ImageLoader.getInstance().init(config);
}
Essas são as options na Activity:
options = new DisplayImageOptions.Builder()
.showImageOnLoading(R.drawable.ic_stub)
.showImageForEmptyUri(R.drawable.ic_empty)
.showImageOnFail(R.drawable.ic_error).cacheInMemory(true)
.cacheOnDisc(true).bitmapConfig(Bitmap.Config.RGB_565).build();
2013/12/30 Gabriel Augusto <gabrielaugustodm@gmail.com>
Pessoal,--Estou com um problema para carregar as imagens apenas no Moto G. Encontrei uma pergunta parecida no stack: http://stackoverflow.com/questions/19893222/java-io-ioexception-cannot-reset-whats-wrongSegue o log:12-30 17:15:42.228: E/ImageLoader(12648): Cannot reset12-30 17:15:42.228: E/ImageLoader(12648): java.io.IOException: Cannot reset12-30 17:15:42.228: E/ImageLoader(12648): at com.nostra13.universalimageloader.core.assist.MarkableInputStream.reset(MarkableInputStream.java:97)12-30 17:15:42.228: E/ImageLoader(12648): at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.decode(BaseImageDecoder.java:78)12-30 17:15:42.228: E/ImageLoader(12648): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.decodeImage(LoadAndDisplayImageTask.java:305)12-30 17:15:42.228: E/ImageLoader(12648): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:260)12-30 17:15:42.228: E/ImageLoader(12648): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:129)12-30 17:15:42.228: E/ImageLoader(12648): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)12-30 17:15:42.228: E/ImageLoader(12648): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)12-30 17:15:42.228: E/ImageLoader(12648): at java.lang.Thread.run(Thread.java:841)Alguem tem alguma ideia?
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comentários:
Postar um comentário