title: wait for intent to finish before continuing with the activities
body: <p>I illustrate my problem,
  I selected an application that performs a series of operations in quick succession the touch of a button.
  each action is represented by an intent to perform a load of an app in the Market or an installation of an external apk.</p>
  
  <p>currently my app does it all in quick succession, but most often give error especially when the intent become many (more than 8)
  so I wanted to rewrite the code so that:</p>
  
  <ul>
  <li>I get a toast,</li>
  <li>the first launch of intent,</li>
  <li>the main activity is paused,</li>
  <li>the term installation or download,</li>
  <li>with the back button returns me to the main app</li>
  <li>that shows me the second toast,</li>
  <li>and start the second intent,</li>
  <li>etc.. etc..</li>
  </ul>
  
  <p>then
  there is a way to wait for the end of a first intent to continue?</p>