com.googlecode.android_scripting
Class MainThread

java.lang.Object
  extended by com.googlecode.android_scripting.MainThread

public class MainThread
extends java.lang.Object


Method Summary
static
<T> T
run(Context context, java.util.concurrent.Callable<T> task)
          Executed in the main thread, returns the result of an execution.
static void run(Context context, java.lang.Runnable task)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public static <T> T run(Context context,
                        java.util.concurrent.Callable<T> task)
Executed in the main thread, returns the result of an execution. Anything that runs here should finish quickly to avoid hanging the UI thread.


run

public static void run(Context context,
                       java.lang.Runnable task)