Code example for ProgressBar

Methods: getProgresssetProgress

0
			final TextView progressItem = (TextView)this.findViewById(R.id.current_progress_item);
			this.runOnUiThread(new Runnable() {
 
				@Override 
				public void run() { 
					if (progressBar.getProgress() <= tp.progressVal) {
						progressBar.setProgress(tp.progressVal);						
						progressItem.setText(tp.name);
					} 
				} 
				 
			}); 
		} 
		 
	} 
	 
	public void newGameListener(View v) {
		Intent freeCiv = new Intent(this, Freeciv.class);
		startActivity(freeCiv);
		finish(); 
	}