private void sendExceptionMsg(int what, Exception e) {
   e.printStackTrace();
   Message msg = Message.obtain();
   msg.obj = e;
   msg.what = what;
   queryHandler.sendMessage(msg);
 }
Beispiel #2
0
 @Override
 public void onClick(View v) {
   Message msg = new Message();
   msg.what = clickIndex;
   msg.arg1 = position;
   Bundle b = new Bundle();
   b.putSerializable(BUNDLE_KEY_LIDATA, list.get(position));
   msg.setData(b);
   mHandle.sendMessage(msg);
 }
 public void doCallback(com.moji.mjweather.common.WeatherUpdater.Result result) {
   Message message = new Message();
   message.what = 0;
   message.obj = result;
   MainHandler.sendMessage(message);
 }