示例#1
0
 protected void doThrowable(final Throwable e) throws Exception {
   if (parent.launchLocation != null) {
     final ArrayList<StackTraceElement> stack =
         new ArrayList<StackTraceElement>(Arrays.asList(e.getStackTrace()));
     stack.addAll(Arrays.asList(parent.launchLocation));
     e.setStackTrace(stack.toArray(new StackTraceElement[stack.size()]));
   }
   postToUiThreadAndWait(
       new Callable<Object>() {
         public Object call() throws Exception {
           parent.onThrowable(e);
           return null;
         }
       });
 }