I'm storing the image id in sqlite,but when I retrieve the id I got the error
android.content.res.Resources$NotFoundException: Resource ID #0x42
So I'm guessing
holder.myImg.setImageDrawable(c.getResources().getDrawable(99));
it doesn't work because it waits for a resource not a int
Taking into consideration that image id is stored into sqlite, how do I get the image for setImageDrawable?
What is the best practice for saving images in sqlite?