Code example for ProgressDialog

Methods: getProgressincrementProgressBy

0
	{ 
		super.onPrepareDialog(id, dialog);
		switch(id)
		{ 
		case PROGRESS_DIALOG:
			pd.incrementProgressBy(-pd.getProgress());
			new Thread(){
			public void run() 
			{ 
				while(true) 
				{ 
					hd.sendEmptyMessage(INCREASE);
					if(pd.getProgress()>=100)
					{ 
						break; 
					}try 
					{ 
						Thread.sleep(40);
					}catch(Exception e)
					{ 
Contextual code suggestions in your IDE  Get Codota for Java