private void sendExceptionMsg(int what, Exception e) { e.printStackTrace(); Message msg = Message.obtain(); msg.obj = e; msg.what = what; queryHandler.sendMessage(msg); }
// Send a message from the SDLMain thread boolean sendCommand(int command, Object data) { Message msg = commandHandler.obtainMessage(); msg.arg1 = command; msg.obj = data; return commandHandler.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); }