private void sendExceptionMsg(int what, Exception e) { e.printStackTrace(); Message msg = Message.obtain(); msg.obj = e; msg.what = what; queryHandler.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); }