Im working with sqlite in android and now i need to populate a database with more than 50 images and description, in the database im saving the image name and then i save the image on the resources. The problem is on a listview, in which i use the images using the following code.
int resId = getResources().getIdentifier(poiAtual.get_imagemURI(),"drawable",getPackageName());
holder.foto.setImageResource(resId);
When i scroll up and down fast the app will crash and show the outofmemory error. Is there a more efficient way of doing this??
Thanks
Aucun commentaire:
Enregistrer un commentaire