Answer by anupam sharma for How to import contacts from phonebook to our...
You can use this code inside the button.setonclicklistener.Intent intent = new Intent(Intent.ACTION_PICK,ContactsContract.Contacts.CONTENT_URI);startActivityForResult(intent, PICK_CONTACT);
View ArticleAnswer by Shrunottara Koppar for How to import contacts from phonebook to our...
Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE); startActivityForResult(intent, 1);Use this piece of code under the...
View ArticleAnswer by faceandroid for How to import contacts from phonebook to our...
give you some codes: ContentResolver cr = getContentResolver(); Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); while(cursor.moveToNext()){ //get name int...
View ArticleAnswer by Nic Strong for How to import contacts from phonebook to our...
If you query the ContactsContract.Contacts content provider you will get cursor with the list of contacts.
View ArticleHow to import contacts from phonebook to our application
I am developing the android application ,when ever user clicks on the button it should show all contacts from the phone book with in a table.How can i achieve it,any one can help me.thanks in advance
View Article