2

Is there any way that i can access the email accounts that are saved in the default email client of android.

Basically I want to access the inbox and display their mails without asking for username and password.

Does AccountManager class thats available in android version 2 answer my query? and if yes then is there any alternative for v1.5 or v1.6.

Marvin Pinto
  • 30,138
  • 7
  • 37
  • 54
AliDeo
  • 169
  • 6
  • 3
    This does not belong on SuperUser. – SLaks Mar 17 '10 at 15:07
  • AccountManager does answer your query, and no, there is no alternative. There's no way of finding out the account name of the account associated with the telephone, prior to android 2 – David Hedlund Mar 17 '10 at 15:10
  • Whoops, my bad... my eyes (read: brain) have been failing me of late :D – Ben Everard Mar 17 '10 at 16:13
  • @AliDeo: Are you interested in programming this solution? – Sampson Mar 17 '10 at 19:26
  • @David Hedlund, how can I get main gmail address in API level 5 and higher using `AccountManager`? It looks like it provides `Account` objects and these contain nothing more than name and type. – plugmind Aug 27 '10 at 12:46
  • @radek: does this answer you question? http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address – David Hedlund Aug 27 '10 at 13:14

1 Answers1

-2

Try going to Settings, then Accounts & sync. Your Gmail and other accounts should be listed under Manage accounts.

JP.
  • 257
  • 1
  • 3
  • 8