org.android.activityminer.logic.util
Class LooperThread
java.lang.Object
java.lang.Thread
org.android.activityminer.logic.util.LooperThread
- All Implemented Interfaces:
- Runnable
public class LooperThread
- extends Thread
A looper thread with a handler and an associated message queue to post
Runnables to.
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
handler
private Handler handler
- The handler
LooperThread
public LooperThread()
- Constructor
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
doTerminate
public final void doTerminate()
- Does terminate the thread and quits the looper
postDelayed
public final boolean postDelayed(Runnable r,
long delay)
- Does post a runnable to the associated handler
- Parameters:
r
- the runnable to execute delayeddelay
- the delay in milliseconds
- Returns:
- true if successful
removeCallbacks
public final void removeCallbacks(Runnable r)
- Does post a runnable to the associated handler
- Parameters:
r
- the runnable to remove call backs for