setMessage not working for Horizontal Progress Dialog.

Put your problem here if it does not fit any of the other categories.

setMessage not working for Horizontal Progress Dialog.

Postby MJ » Fri Jul 24, 2009 3:56 am

progressDwnldDialog = new ProgressDialog(this);
progressDwnldDialog.setTitle(R.string.progressDownload);
progressDwnldDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progressDwnldDialog.setMessage(String.valueOf(msg.arg1/msg.arg2 * 100 + "%") + "[" + msg.arg1 + "/" + msg.arg2 + "]" + getText(R.string.bytes)); //set Message for HORIZONTAL style doesn't seem to work bt works for SPINNER style. :(

Can't we customize the message for HORIZONTAL progress Dialog?
MJ
Freshman
Freshman
 
Posts: 3
Joined: Wed Jul 15, 2009 8:21 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests