contacts api

contacts api document

The ContactsContract api

ContactsContract.RawContacts api

How can I download a file using filemanager in ADT?

Search for: How can I download a file using filemanager in ADT?


window
show view
other
Android
File manager

what is DCIM

Search for: what is DCIM

what is vcf

Search for: what is vcf

How can I mount an android device?

Search for: How can I mount an android device?

How can I copy files to android phone

Search for: How can I copy files to android phone

how to access android emulator sdcard

Search for: how to access android emulator sdcard

android adt file explorer

Search Google for: android adt file explorer

Search Android Developers Group for: android adt file explorer

Search Android Beginers Group for: android adt file explorer

Search Google Code for: android adt file explorer

Search Android Issues Database for: android adt file explorer

android adt file explorer copy file

Search Google for: android adt file explorer copy file

Search Android Developers Group for: android adt file explorer copy file

Search Android Beginers Group for: android adt file explorer copy file

Search Google Code for: android adt file explorer copy file

Search Android Issues Database for: android adt file explorer copy file

Android ADT File explorer has an icon (top right) to copy files

See top right


BEGIN:VCARD
VERSION:2.1
N:C1-Last;C1-First;;;
FN:C1-First C1-Last
TEL;TLX:55555
TEL;WORK:66666
EMAIL;HOME:[email protected]
EMAIL;WORK:[email protected]
ORG:WorkComp
TITLE:President
ORG:Work Other
TITLE:President
URL:www.com
NOTE:Note1
X-AIM:aim
X-MSN:wlive
END:VCARD
BEGIN:VCARD
VERSION:2.1
N:C2-Last;C2-first;;;
FN:C2-first C2-Last
END:VCARD

CommonDataKinds api

email, im, address are all treated as rows with different column aliases.

The complete list of data columns

These are all generic columns. The key column is the MimeType column indicating the kind of row it is.

Data is a generic table that can hold any kind of contact data. The kind of data stored in a given row is specified by the row's MIMETYPE value, which determines the meaning of the generic columns DATA1 through DATA15. For example, if the data kind is Phone.CONTENT_ITEM_TYPE, then the column DATA1 stores the phone number, but if the data kind is Email.CONTENT_ITEM_TYPE, then DATA1 stores the email address. Sync adapters and applications can introduce their own data kinds.

data1: for actual data such as email, phone etc.

data15: for blob data

android syncing contacts

Search Google for: android syncing contacts

Search Android Developers Group for: android syncing contacts

Search Android Beginers Group for: android syncing contacts

Search Google Code for: android syncing contacts

Search Android Issues Database for: android syncing contacts

android contact sync adapters

Search Google for: android contact sync adapters

Search Android Developers Group for: android contact sync adapters

Search Android Beginers Group for: android contact sync adapters

Search Google Code for: android contact sync adapters

Search Android Issues Database for: android contact sync adapters

Using ContentProviderOperation

Search Google for: Using ContentProviderOperation

Search Android Developers Group for: Using ContentProviderOperation

Search Android Beginers Group for: Using ContentProviderOperation

Search Google Code for: Using ContentProviderOperation

Search Android Issues Database for: Using ContentProviderOperation


ContentValues values = new ContentValues(); 
values.put(Data.RAW_CONTACT_ID, rawContactId); 
values.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); 
values.put(Phone.NUMBER, "1-800-GOOG-411"); 
values.put(Phone.TYPE, Phone.TYPE_CUSTOM); 
values.put(Phone.LABEL, "free directory assistance"); 
Uri dataUri = getContentResolver().insert(Data.CONTENT_URI, values);

vnd.android.cursor.dir/phone

Many content types are defined in the Contacts.ContactMethods class


vnd.android.cursor.item/postal-address

Instead look at the ContactsContract.CommonDataKinds.(SpecificKid).content_type

See this for address content type

which is


vnd.android.cursor.dir/postal-address_v2

email
event
groupmemebership
im
nickname
note
organization
phone
photo
relation
structuredname
structuredpostal
website

Each of these types will inform the mime type and also the additional columns they use.


Raw Contacts
**************
gmail/rc1 - rawcontact1 (rc1)
gmail/rc2 - rawcontact 2 (rc2)

Data
*********
rc1 name satya
rc1 email home [email protected]
rc1 im aol [email protected]
rc1 im yahoo [email protected]

rc2 name jay
rc2 home address (street1, city2, state)

rawcontacts api


structured name
organization
phone number
email
nickname

ContentValues values = new ContentValues(); 
values.put(RawContacts.ACCOUNT_TYPE, accountType); 
values.put(RawContacts.ACCOUNT_NAME, accountName); 
Uri rawContactUri = 
 getContentResolver().insert(RawContacts.CONTENT_URI, values); 
long rawContactId = ContentUris.parseId(rawContactUri);

android contacts default account type name

Search Google for: android contacts default account type name

Search Android Developers Group for: android contacts default account type name

Search Android Beginers Group for: android contacts default account type name

Search Google Code for: android contacts default account type name

Search Android Issues Database for: android contacts default account type name

Some info link on contact types and accounts

Summary at this link

you have an option to choose a contact type when you create a new contact

You cannot change contact types once created

By default your contact type is PHONE

is that same as account type??

Under "People" go to menu/view and ensure that Google is checked - and NOT phone or facebook or any other ones that may be listed.

android new contact account choose

Search for: android new contact account choose

android emulator syncing sntp

Search for: android emulator syncing sntp

can i turn on the sync in the emulator

based on this link people are having issues

People seem to suggest that you need a real device

because google gmail requires a real ID of the device

android emulator syncing

Search for: android emulator syncing

This is a better search

gmail in android emulator

Search for: gmail in android emulator

business card application

To see gmail account setup in the emulator you may need to install the google api optional component

I am checking now.

To see the gmail account setup in the emulator you need to download and install the google api extension. In builds starting with 2.3 this extension comes in a separate bundle.