Code example for ArrayList

Methods: addAll, size, toArray

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; 
                } 
            }); 
        } 
 
        protected void doFinally() throws Exception { 
            postToUiThreadAndWait( new Callable<Object>() {
                public Object call() throws Exception {
                    parent.onFinally();