I need to convert a Bitmap or even a Drawable into a Drawable (int), since I'm using a Bootstrap for android that needs an object of this type, but since I'm downloading the image from a url and not picking it internally, I'm getting it.
Here's the snippet:
Bitmap bitIcon = BitmapFactory.decodeStream(url.openConnection().getInputStream());
Drawable drawable = new BitmapDrawable(getResources(), bitIcon);
imgPerfil.setImage();
On the third line it asks for an integer, but I only have the Drawable Object and not its id. I wanted to know how to fetch this integer.