I want to send an email automatically without any user intervention to a particular id. To send mail,username and password of the device from which I am sending,has to be authenticated. I am able to get the registered account name from my phone using
Account[] accounts = AccountManager.get(this).getAccounts();
for (Account account : accounts) {
String possibleEmail = account.name;
}
I know my password,so I am sending hardcoded password to authenticate.Is it possible to get password programatically?