title: How to add tabbar in doinbackground asynctask in android
body: <p>How to add tabbar in doinbackground asynctask  in android? or how to run splash screen in thread? I want to show a progress dialog or splash screen until tab bar is loaded from calling tabbar class I am calling webservices and parsing the value takes time, for few mins mean time, I have to show progessbar or splash screen. Can anybody tell me how to implement this? Can anybody give sample code?
  I tried but its not working</p>
  
  <pre><code>dlg = ProgressDialog.show(this, "Working..", "Downloading Data...", true, false);    
  
   Thread splashThread = new Thread() { 
          @Override
          public void run() { 
             try { 
  
                  sleep(100000); 
  
  
  
             } catch (InterruptedException e) { 
                // do nothing 
             } finally { 
  
             } 
          } 
       }; 
       splashThread.start(); 
  </code></pre>