Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rehoboth iyaselerehoboth

🏠
Working from home
View GitHub Profile
@iyaselerehoboth
iyaselerehoboth / OnButtonClick.java
Created Nov 1, 2019 — forked from anandwana001/OnButtonClick.java
Save image from network to external storage using Glide
View OnButtonClick.java
#Step 1
Glide.with(mContext)
.load(images.get(position).getThumbnail())
.asBitmap()
.into(new SimpleTarget<Bitmap>(100,100) {
@Override
public void onResourceReady(Bitmap resource, GlideAnimation glideAnimation) {
saveImage(resource,position);
}
});