I have an image in the mipmap
folder of my project, I would like to convert that image to Bitmap
.
I tried this way but it does not work for me since it tells me that
(R.mipmap.imagen_deseada)
can not be applied to this method(BitmapFactory)
.
Bitmap bitmap = BitmapFactory.decodeFile(R.mipmap.imagen_deseada);
articulo.setImg(bitmap);
How can I do it?