Code example for ProgressBar

Methods: postInvalidatesetIndeterminatesetMaxsetProgress

0
	} 
 
	private class UnpackTask extends AsyncTask<String, Integer, Void> {
		@Override 
		protected void onProgressUpdate(Integer... progress) {
			mProgress.setIndeterminate(false);
			mProgress.setMax(progress[1]);
			mProgress.setProgress(progress[0]);
			mProgress.postInvalidate();
		} 
 
		@Override 
		protected void onPostExecute(Void result) {
			Bundle md = getMetaData();
			String nextActivity = md.getString(META_NEXT_ACTIVITY);
			if (nextActivity != null) {
				final ComponentName cn =
					ComponentName.unflattenFromString(nextActivity);
				if (cn != null) {
					final Intent origIntent = getIntent();
Stop searching for code, let great code find you!  Add Codota to your java IDE