Code example for ProgressBar

Methods: incrementProgressBy

0
				    		 
							tareaLarga(); 
							 
							pbarProgreso.post(new Runnable() {
					    		public void run() { 
					    			pbarProgreso.incrementProgressBy(10);
					    		} 
					    	}); 
						} 
				    	 
				    	runOnUiThread(new Runnable() {
				    	    public void run() { 
				    	        Toast.makeText(MainActivity.this, "Tarea finalizada!", Toast.LENGTH_SHORT).show();
				    	    } 
				    	}); 
				    } 
				}).start();
			} 
		}); 
         
        btnAsyncTask.setOnClickListener(new OnClickListener() {