Click here to Skip to main content
15,920,031 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
protected Dialog onCreateDialog(int id) {
		switch (id) {
		case 1:
			mProgressDialog = new ProgressDialog(this);
			mProgressDialog.setMessage("Downloading.....");
			      mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
			mProgressDialog.setCancelable(true);
			mProgressDialog.show();
			new getDataMoneyRequistion().execute(new String[] { "1" });
			return mProgressDialog;
		case 3:
			ProgressDialog mProgressDialog1 = new ProgressDialog(this);
			mProgressDialog1.setMessage("Downloading.....");
			mProgressDialog1.setProgressStyle(ProgressDialog.STYLE_SPINNER);
			mProgressDialog1.setCancelable(true);
			mProgressDialog1.show();
			new getDataMoneyRequistion().execute(new String[] { "2" });
			return mProgressDialog1;
		default:
			return null;
		}

	};

above code is my progress dailog. When activity load i showdailog: showDailog(1);
than onPostExecution method call at that time i call : dissmissDailog(1); showDailog(3);

*)My Question is:
The method dismissDialog(int) from the type Activity is deprecated.
waring occur at time showDailog and DissmissDialog Call.

Worry About this Warning or Not?
Posted
Updated 7-Sep-12 22:40pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900