I am using TabHost in my application. When I use ProgressBar in any one of the activity the application stops unexpectedly.
When any Tab is clicked, the corresponding activity is called. This activity does some background processing(gets data from WebService) and then displays that data. The problem is when I u开发者_如何学Pythonse ProgressBar its not working. The application gets forcefully closed. I want to display ProgressBar till the activity gets the data from the WebService.
Use
ProgressDialog.show(getParent(),"My Msg");
GetParent will help you.
Thank you.
精彩评论