0
I need to convert a Bitmap or even a Drawable into a Drawable (int), because I’m using a Bootstrap for android that needs an object of this type, but as I’m downloading the image of a url and not picking it up internally, I’m not getting it.
Follow the passage:
Bitmap bitIcon = BitmapFactory.decodeStream(url.openConnection().getInputStream());
Drawable drawable = new BitmapDrawable(getResources(), bitIcon);
imgPerfil.setImage();
In the third line it asks for an integer, but I only have the Drawable Object and not its id. I wondered how to search this integer.
follow the link to the bootstrap-android library I’m using https://github.com/Bearded-Hen/Android-Bootstrap/wiki/Bootstrap-Thumbnail
– user4647