private class BatteryActivity.MyThread
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private boolean |
active |
private Handler |
mHandler |
Constructor and Description |
---|
BatteryActivity.MyThread(Handler handler) |
Modifier and Type | Method and Description |
---|---|
private void |
batteryLevel()
Method that contains a broadcast receiver for the battery and when
it's called runs the method onReceive finding the battery's info
|
void |
run() |
void |
setAtive(boolean act) |
void |
setHandler(Handler handler) |
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
public void setHandler(Handler handler)
public void setAtive(boolean act)
private void batteryLevel()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread