Code example for ProgressDialog

Methods: setMessagesetProgresssetProgressStyle, setCancelable, setOnCancelListener, show

		_statsTask.execute( hash, tracker, destination );
	// creates the progress dialog 
	protected void SwiftCreateProgress() { 
		_dialog = new ProgressDialog(VideoPlayerActivity.this);
	  // set the progress to be horizontal 
	  // reset the bar to the default value of 0 
	  //stop the engine if the procress scree is cancelled 
	  _dialog.setOnCancelListener(new OnCancelListener() {
			public void onCancel(DialogInterface dialog) {
//				_text.setText("TODO HTTPGW engine stopped!"); 
				// Arno, 2012-01-30: TODO tell HTTPGW to stop serving data 
				// Raul, 2012-03-27: don't stay here with a black screen.  
				// Go back to video list 
	  // display the progressbar;
	//starts the video playback