You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetch Image from an URL present in the form of String
Contextualize the feature
Images are stored as URLs in Cloud Databases. Need of a method to fetch image from that URL and then display.
Describe the feature
Currently to set an Image, the following method is invoked:
imageView.setImageResource(R.drawable.image_id)
The method only accepts a parameter of type resource id. But if a string is provided instead, it would give compilation errors. Please add a feature to fetch image from cloud database, given in form of URL. A URL is of type String.
The text was updated successfully, but these errors were encountered:
add in your main program :
... get File by TCPIP download from your database
Bitmap myBitmap = BitmapFactory.decodeFile(file.getAbsolutePath()); // file : File to your image
mPhotoView.setImageBitmap(myBitmap);
add in PhotoView.java : @OverRide
public void setImageBitmap(Bitmap bm) {
super.setImageBitmap(bm);
if (attacher != null) {
attacher.update();
}
}
🚀 Feature Requests
Fetch Image from an URL present in the form of String
Contextualize the feature
Images are stored as
URL
s in Cloud Databases. Need of a method to fetch image from thatURL
and then display.Describe the feature
Currently to set an Image, the following method is invoked:
The method only accepts a parameter of type
resource id
. But if a string is provided instead, it would give compilation errors. Please add a feature to fetch image from cloud database, given in form ofURL
. AURL
is of typeString
.The text was updated successfully, but these errors were encountered: