android how to put progressdialog in TabActivity <p>I hav an application where I have an TabActivity and which have 2tabs(each tab as an activity) First tab(an activity) loads data from internet. So I want there a progressdialog until the 1st tab(an activity) loads data from internet.</p> <pre><code>ProgressDialog.show(TabHostActivity.this, "Working..", "Downloading Data...",true); pd.dismiss(); </code></pre> <p>only this much code i have which not give satisfaction please anybody tell me what i write to show a progressdialog until it download the data. (means i hav to use thread). Please give me answer along with code Thank you </p>