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 boolean queueIdle() {
   // Log.i(logTag, "in idle handler");
   if (nativeRender()) {
     // Log.i(logTag, "will re-run");
     Message msg = Message.obtain();
     handler.sendMessageAtFrontOfQueue(
         msg); // force idle handler to re-run in case of no pending msgs
     return true;
   } else {
     // Log.i(logTag, "won't re-run");
     idleHandlerActive = false;
     return false;
   }
 }