android.os
Class HandlerThread

java.lang.Object
  extended by java.lang.Thread
      extended by android.os.HandlerThread
All Implemented Interfaces:
Runnable

public class HandlerThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HandlerThread(String name)
           
HandlerThread(String name, int priority)
           
 
Method Summary
 Looper getLooper()
           
 int getThreadId()
           
protected  void onLooperPrepared()
           
 boolean quit()
           
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HandlerThread

public HandlerThread(String name)

HandlerThread

public HandlerThread(String name,
                     int priority)
Method Detail

onLooperPrepared

protected void onLooperPrepared()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

getLooper

public Looper getLooper()

quit

public boolean quit()

getThreadId

public int getThreadId()


Copyright © 2008-2012. All Rights Reserved.