Running Accounts & sync settings
<p>I am currently retrieving the users gmail username using Android's AccountManager class.
My problem is that my app assumes that the user has already added his Google account to his Android phone and I would just like to ask if it is possible to launch the Account &amp; sync settings app in case the user has not actually bound his Google account to his phone?</p>

<pre><code> AccountManager accountManager = AccountManager.get(getApplicationContext());
 Account[] accounts = accountManager.getAccountsByType("com.google");
 if (accounts.length == 0) // How?
    // run Accounts &amp; sync settings so that the user can add his Google account
</code></pre>
