标签:android 使用 java ar c new r as class
使用:
Bundle bundle = new Bundle(); Message message = dummyHandler.obtainMessage(EVENT_SET_LOCK_CLICK); message.arg1 = 101; bundle.putString("lockList", lockList); message.setData(bundle); dummyHandler.sendMessage(message);
message.arg1相当于简易参数
sendMessage进行调用
Handler内部处理:
private Handler dummyHandler = new Handler() { public void handleMessage(Message msg) { switch(msg.what){ case EVENT_SET_LOCK_CLICK: int arg_1 = msg.arg1; Bundle bundle = msg.getData(); String lockList = bundle.getString("lockList"); } } }
标签:android 使用 java ar c new r as class
原文地址:http://blog.csdn.net/howlaa/article/details/39320459