ProgressDialog giving error, while I am using in onCreate() of activity that is in activity group?

Your problem is that you try to modify the ui from non the ui-thread. Use handlers for such things. Here is a good example.

Can you give a sort example, please. – Pankaj Kumar Mar 9 at 11:00 updated the answer. – Vladimir Ivanov Mar 9 at 11:10 I am not understanding how to implement it.

I tried but not succeed. – Pankaj Kumar Mar 9 at 11:49.

Or you can also try like below replace dismissDialog(CONTACT_DIALOG_ID); with below code runOnUiThread(new Runnable() { @Override public void run() { dismissDialog(CONTACT_DIALOG_ID); } }).

Not working. Error is same. – Pankaj Kumar Mar 9 at 10:59.

Currently, the showDialog is in the onCreate() method of my main activity. Any suggestions would be greatly appreciated.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions