How to access device gmail account password from Android Applications
<p>Iam developing one Android Application, which requires to send email messages. So I want to get Default Password set by the user in his device from my code. Is there any way. I have used JavaMail API's for sending messages. Thanks in advance.</p>

<hr>

<pre><code>Account[] accounts = AccountManager.get(this).getAccounts();
    String SenderAddress = null, Password = null;

    for (Account account : accounts) 
    {
        if(account.name.endsWith("gmail.com"))
        {
            SenderAddress = account.name;
            Password = ?
        }
    }
</code></pre>
