Hardik Trivedi wrote:Orientation do affect Alert Dialog.
You can handle AsyncTask too. Just call some method on positive button of AlertDialog.And you can display progressDialog from that method.runOnUiThread I think help you out.
You can make your own customize Alert Dialog too.
What do you mean by - "Orientation do affect Alert Dialog."
Do you mean that it handles itself and we don't need to code or handle ? Whereas in custom dialog we need to handle it ourselves !!
Well, On positive button clickI will call AsyncTask object. In that only in onPre I will open ProgressDialog and in onPost close the ProgressDialog. I guess this will be running on UI thread
only via AsyncTask !!!