How to get notified when "Add account " Activity has finished
<p>I'm developing an application that uses google push c2dm.
When I start my application I check to see whatever the phone has a Google account registered or not. 
If there is no account I use startActivity to start the "Add account" activity</p>

<pre><code>Intent addAccountIntent = new Intent(android.provider.Settings.ACTION_ADD_ACCOUNT).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(addAccountIntent);        </code></pre>

<p>Is there a way to get notified when this activity has finished, so that I can confirm that there is a Google account active on the phone.</p>
