Android 源码阅读之MMS--细读TransactionService.java
topic: HandlerThread
public void onCreate() { HandlerThread thread = new HandlerThread("TransactionService"); thread.start(); mServiceHandler = new ServiceHandler(thread.getLooper()); } private final class ServiceHandler extends Handler { public void handleMessage(Message msg) {
switch (msg.what) {
} } }
public void func(){
mServiceHandler.sendMessage(msg);
}