Skip to content

Instantly share code, notes, and snippets.

View AbuBallan's full-sized avatar

Mohammad Abu Ballan AbuBallan

  • Jordan
View GitHub Profile
@AbuBallan
AbuBallan / OnButtonClick.java
Last active August 23, 2019 19:34 — forked from anandwana001/OnButtonClick.java
Save image from network to external storage using Glide
// Step 1
private void saveImage(String source) {
SimpleTarget<Bitmap> simpleTarget = new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition<? super Bitmap> transition) {
saveImage(resource, position);
}
};