When Contacts are stored in an android device, they are stored under a certain account type (and account name). These types include Sim, Device and Google account. Does anyone know where I can find a list of all of these types?
Asked
Active
Viewed 2,269 times
0

Userrrrrrrrr
- 183
- 3
- 12
-
No, as you can create your own... Edit: depends on when.... If you wana do this as hardcode then no, but you may list of account types at runtime – Selvin Sep 29 '16 at 12:58
-
Have you tried looking at the contacts ContentProvider? – OneCricketeer Sep 29 '16 at 12:59
-
Do you know of a way I can programatically find the existing ones on a device Selvin? – Userrrrrrrrr Sep 29 '16 at 12:59
-
Also, I am sure that there are some that are known, like SIM, Selvin, – Userrrrrrrrr Sep 29 '16 at 13:01
-
Cricket, I have looked at the documentation as well as lots of other related documentation pages, and I found nothing relevant unfortunately. – Userrrrrrrrr Sep 29 '16 at 13:02
-
Like sim? On devices without sim? I have edited my first comment... But still not all accounts use Contacts content provider. – Selvin Sep 29 '16 at 13:02
-
How can I find a list of account types at runtime? I don't mind not finding accounts that do not use contacts content provider. – Userrrrrrrrr Sep 29 '16 at 13:06
1 Answers
0
Account Name/Type are not consistent through all Android devices. Every brand uses different account names for SIM and internal memory, as an example (and take in account the records there are copied to the database). You can know, though, the name/type for other providers, like Google, Facebook or Whatsapp. Here What is the default Account Type / Name for contacts on Android Contact Application? it is explained how to get this fields.

Community
- 1
- 1

Joanmi Bardera
- 351
- 1
- 7