Code example for Message

Methods: setData

0
      lastSentPercent = percentDone;
    } 
  } 
 
  protected final void sendBundledMessage(final int what, final Bundle bundle) {    
    final Message msg = new Message();
    msg.what = what;
    msg.setData(bundle);
    handler.sendMessage(msg);
  }   
   
  protected abstract void subRun() throws IOException, InterruptedException; 
   
  /** interrupt this upload */ 
  public final void setInterrupted() { 
    interrupt.set( true );
  }   
   
  protected final boolean wasInterrupted() { 
    return interrupt.get();
  }