Pessoal,
-- Estou tentando usar o LRU Cache e não funciona.
Notei também que o cache continua com tamanho zero logo após a inserção:
public void addBitmapToMemoryCache(String key, Bitmap bitmap) {
if (getBitmapFromMemCache(key) == null) {
mMemoryCache.put(key, bitmap);
Log.i("TESTE", "Tamanho do cache: " + mMemoryCache.size() ); // retorna 0
}
}
Alguém sabe explica o que está acontecendo ?
Abs,
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