Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Yoo (Wonsuc Yoo) wonsuc

  • pwdr
  • Seoul, South Korea
View GitHub Profile
View DatabaseManager.java
package app.pwdr.firebase.manager;
import android.annotation.SuppressLint;
import android.util.Log;
import app.pwdr.firebase.model.FIRObject;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
@wonsuc
wonsuc / TasksUtil.java
Last active Nov 9, 2020
A simple helper class to call tasks synchronously in Android's The Tasks API.
View TasksUtil.java
package app.pwdr.firebase.util;
import android.support.annotation.NonNull;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
@wonsuc
wonsuc / FirebaseAppGlideModule.java
Last active Mar 31, 2021
Downloading progress with FirebaseUI Storage
View FirebaseAppGlideModule.java
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import com.bumptech.glide.Glide;
import com.bumptech.glide.Registry;
import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.AppGlideModule;
import com.google.firebase.storage.StorageReference;