R RichardN Well-Known Member Licensed User Longtime User Sep 23, 2012 #1 Can I read the user's default (from) email address into a string? Phone.GetSettings() does not seem to expose it, where should I be looking?
Can I read the user's default (from) email address into a string? Phone.GetSettings() does not seem to expose it, where should I be looking?
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2012 #2 See this thread: Basic4android Search: account manager Upvote 0
R RichardN Well-Known Member Licensed User Longtime User Sep 24, 2012 #3 Erel, The accounts returned by your method are the addresses by which the device has been registered to the Google store which are not necessarily the one(s) in use on the mail client on the device. The user will have one or more POP/IMAP accounts that sync via the mail client. I wish to retrieve the email address of the default account. Upvote 0
Erel, The accounts returned by your method are the addresses by which the device has been registered to the Google store which are not necessarily the one(s) in use on the mail client on the device. The user will have one or more POP/IMAP accounts that sync via the mail client. I wish to retrieve the email address of the default account.
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2012 #4 This is the only way to get the user address. You can of course send the email using an intent that will start the default mail client. Upvote 0
This is the only way to get the user address. You can of course send the email using an intent that will start the default mail client.