阅读更多
/* {
HandlerThread ht = new HandlerThread("MyThread");
ht.start();
handler = new Handler(ht.getLooper(), new Handler.Callback() {
@Override
public boolean handleMessage(Message msg) {
// TODO Auto-generated method stub
int tmp = msg.arg1;
System.out.println(Thread.currentThread().getId() + "::::::::::::" + tmp);
return false;
}
});
@Override
public void handleMessage(Message msg) {
switch(msg.what) {
case 0:
map.put("commend", true);
commBtn.setBackgroundResource(R.drawable.comm_pressed);
break;
default:break;
}
super.handleMessage(msg);
}
});*/