Skip to content

Instantly share code, notes, and snippets.

@gvieira
gvieira / JSPromise
Created April 6, 2016 14:31 — forked from timfreiheit/JSPromise
Android JavascriptInterface Promise
import android.os.Build;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import com.google.gson.Gson;
import java.util.concurrent.Callable;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;