public class LogThread
extends android.os.HandlerThread
implements android.os.Handler.Callback
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
LogThread.Callback |
| 构造器和说明 |
|---|
LogThread(java.io.File file,
LogThread.Callback callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canWriteLog() |
boolean |
handleMessage(android.os.Message msg) |
boolean |
quit() |
void |
start() |
void |
writeLog() |
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, stop, stop, suspend, toString, yieldpublic LogThread(java.io.File file,
LogThread.Callback callback)
public void start()
start 在类中 java.lang.Threadpublic boolean quit()
quit 在类中 android.os.HandlerThreadpublic void writeLog()
public boolean canWriteLog()
public boolean handleMessage(android.os.Message msg)
handleMessage 在接口中 android.os.Handler.Callback