android - ProgressDialog does not showing Title and Message -
hope playing errors.
i stuck silly problem. don't know why happening?
i have created 1 asynctask in doing process of uploading images.
/** * uploading images */ private class uploadphotostask extends asynctask<void, integer, integer> { string errormessage; arraylist<photocaption> captionarraylist; private progressdialog progressdialog; private uploadphotostask(arraylist<photocaption> arraylist) { captionarraylist = arraylist; } @override protected void onpreexecute() { super.onpreexecute(); progressdialog = new progressdialog(albumphotodetailsactivity.this); progressdialog.settitle("wait while"); progressdialog.setmessage("uploading photos..."); progressdialog.setindeterminate(true); progressdialog.setprogress(0); progressdialog.setmax(captionarraylist.size()); progressdialog.setprogressstyle(progressdialog.style_horizontal); progressdialog.setcancelable(false); progressdialog.show(); } @override protected void onprogressupdate(integer... values) { super.onprogressupdate(values); progressdialog.setprogress(values[0]); } @override protected integer doinbackground(void... params) { //processing upload } @override protected void onpostexecute(integer result) { super.onpostexecute(result); progressdialog.dismiss(); } } it doesn't showing title or message, dont know why.
note: have tried possibilities. if remove
setprogressstyle(progressdialog.style_horizontal)displaying circular progress want here horizontal progressbar number of images ready upload.
any idea? why so? appreciated. thank you.
it theme issue on end,probably textcolor set white in theme change these
<item name="android:textcolorprimary">@color/white</item> <item name="android:textcolorsecondary">@color/white</item> change black

Comments
Post a Comment