-2

Android 4.3. I write android application that show/edit/add/remove conacts that user input.

But I has many contacts in my adress book on device. So I want to imprort all this conacts from device adress book to my android application. How I can do this?

Alex
  • 1,857
  • 4
  • 17
  • 34

2 Answers2

2

Use ContentProvider components in your application.
ContentProvider definition according to Android documentation:

Content providers can help an application manage access to data stored by itself, stored by other apps, and provide a way to share data with other apps. They encapsulate the data, and provide mechanisms for defining data security.
Follow the link to learn about content provider codetutor

else follow the vogella tutorial about contacts

Rao Arsalan
  • 155
  • 1
  • 1
  • 13
0

you will use content resolver api to query your phone book and retrieve contacts list .this is useful tutorial