@Override protected void onCompleted(AsyncEventArgs e){
  super.onCompleted(e);
  if (e.getBytesTransferred() > 0) {
    if (e.getBytesTransferred() < e.getCount())     sendAsync(e.getOffset() + e.getBytesTransferred(),e.getCount() - e.getBytesTransferred());
 else     if (mCursor != mTotal)     sendEntity();
 else     sendNext();
  }
 else {
    dispose();
  }
}

@ Override protected void onCompleted ( AsyncEventArgs e ) { super . onCompleted ( e ) ; if ( e . getBytesTransferred ( ) > 0 ) { if ( e . getBytesTransferred ( ) < e . getCount ( ) ) sendAsync ( e . getOffset ( ) + e . getBytesTransferred ( ) , e . getCount ( ) - e . getBytesTransferred ( ) ) ; else if ( mCursor != mTotal ) sendEntity ( ) ; else sendNext ( ) ; } else { dispose ( ) ; } }
on asynchronous send end callback
