public class AsynchUtil
extends java.lang.Object
Constructor and Description |
---|
AsynchUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
runAsynchronously(android.os.Handler androidUIHandler,
java.lang.Runnable call,
java.lang.Runnable callback)
Make an asynchronous call in a separate thread, with a callback that's run on the current
Android UI thread.
|
static void |
runAsynchronously(java.lang.Runnable call)
Make an asynchronous call in a separate thread.
|
public static void runAsynchronously(java.lang.Runnable call)
call
- a Runnable
to run in the thread.public static void runAsynchronously(android.os.Handler androidUIHandler, java.lang.Runnable call, java.lang.Runnable callback)
androidUIHandler
- the Handler from the current Android contextcall
- a Runnable
to run in the thread.callback
- a Runnable
to run in the Android UI thread when the call above returns