传递消息的集中方式:

一:

Message message = Message.obtain();message.obj = data;message.what = IS_FINISHED;handle.sendMessage(message);

二:

Message message =     Message.obtain(handle);message.obj = data;message.sendToTarget();

三:可以在message中传递复杂数据

Message message = Message.obtain(handle);message.obj = data;Bundle bundle = new Bundle();bundle.putByte("key", (byte) 0);message.setData(bundle);message.sendToTarget();

四、在obtain中传递消息的参数