开发者

Trouble With TabActivity on Frequent Clicking The Tabs

In My application there are 3 tabs for Tab Host which contains activities . These activities are downloading some images and videos from server.The problem is when I frequently click the tabs I get force close due to many exceptions. If I solve one another exception arise. so I want to introduce a progress dialog on tab click so that the user unable to click the other tabs.I tried including progress bar at the starting of onCreate() and onTabChanged() but its no use please help开发者_JAVA百科 me regard this.

If this information is not eno


You will need to use AsyncTask to show progress bar.And for downloading use a Thread thus allowing the UI to load smoothly.

Check out this link for Progress bar with Async Task Progress Bar

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜