Code example for ProgressDialog

Methods: dismiss, hide

0
	 
	@Override 
	protected void onPostExecute(JSONObject result) {
		super.onPostExecute(result);
		try { 
			mProgress.dismiss();
		} catch (Exception exc) {
			// er... 
			try { 
				mProgress.hide();
			} catch (Exception exc2) {
				// what?! 
			} 
		} 
		 
		if (mError != null)
			errorMessage(mError);
		if (result != null)
			onResult(result);
	}