title: IntentService operations with a ProgressDialog?
body: <p>I have been acheiving a network operation , initiated by an activity through IntentService . </p>
  
  <p>However during the download operation I want to block the UI by means of a ProgressDialog . </p>
  
  <p>The problem is that that ProgressBar has a handle to an activity , it is strongly coupled with it and this would cause problems if the screen's orientation is changed during the operation . </p>
  
  <p>If Activity A , starts IntentService B , I can introduce a ProgressDialog right after . But if before my reciever is invoked (before the network operation is completed) , the orientation changes ; I will end up with an orphaned reference to the ProgressDialog hence wont be able to dismiss it .</p>
  
  <p>Any suggestions ? </p>