title: Close activity started with onActivityResult when a C2DM message is received
body: <p>In my application here is the scenario</p>
  
  <ol>
  <li>Activity A  receives a regiID from C2DM </li>
  <li>Activity A sends regID to server S</li>
  <li>Activity A calls activity B through onActivityResult()</li>
  <li>While the user is in activity B, the server S sends a "close" message through C2DM</li>
  <li>Activity A receives the message</li>
  </ol>
  
  <p>I want to close activity A and B at this time (however activity B is in foreground). How can I achieve this? [by close i mean finish]</p>
  
  <p>Please guide</p>