contacts api
satya - Tuesday, October 12, 2010 1:55:35 PM
ContactsContract.RawContacts api
satya - Thursday, October 28, 2010 1:17:39 PM
How can I download a file using filemanager in ADT?
How can I download a file using filemanager in ADT?
Search for: How can I download a file using filemanager in ADT?
satya - Thursday, October 28, 2010 1:18:24 PM
How can I access the filemanager
window
show view
other
Android
File manager
satya - Thursday, October 28, 2010 1:22:40 PM
How can I mount an android device?
How can I mount an android device?
satya - Thursday, October 28, 2010 1:23:03 PM
How can I copy files to android phone
How can I copy files to android phone
satya - Thursday, October 28, 2010 1:23:30 PM
how to access android emulator sdcard
how to access android emulator sdcard
satya - Thursday, October 28, 2010 1:33:45 PM
android adt file explorer
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
satya - Thursday, October 28, 2010 1:34:02 PM
android adt file explorer copy file
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
satya - Thursday, October 28, 2010 1:37:41 PM
Android ADT File explorer has an icon (top right) to copy files
Android ADT File explorer has an icon (top right) to copy files
satya - Thursday, October 28, 2010 1:43:06 PM
Here is a look at that icon
See top right
satya - Thursday, October 28, 2010 1:47:17 PM
Here is an exported vcf file for two contacts
BEGIN:VCARD
VERSION:2.1
N:C1-Last;C1-First;;;
FN:C1-First C1-Last
TEL;TLX:55555
TEL;WORK:66666
EMAIL;HOME:test@home.com
EMAIL;WORK:test@work.com
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
satya - Friday, October 29, 2010 9:49:19 AM
CommonDataKinds api
email, im, address are all treated as rows with different column aliases.
satya - Friday, October 29, 2010 9:55:39 AM
The complete list of data columns
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.
satya - Friday, October 29, 2010 9:57:51 AM
Where are the mime types for the contact data defined
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.
satya - Friday, October 29, 2010 10:05:42 AM
convention
data1: for actual data such as email, phone etc.
data15: for blob data
satya - Friday, October 29, 2010 10:07:58 AM
android syncing contacts
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
satya - Friday, October 29, 2010 10:09:06 AM
android contact sync adapters
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
satya - Friday, October 29, 2010 10:10:58 AM
Using ContentProviderOperation
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
satya - Friday, October 29, 2010 10:15:02 AM
Inserting a phone number
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);
satya - Friday, October 29, 2010 1:22:02 PM
example content type: contacts.phones.content_type
vnd.android.cursor.dir/phone
satya - Friday, October 29, 2010 1:31:03 PM
Many content types are defined in the Contacts.ContactMethods class
Many content types are defined in the Contacts.ContactMethods class
satya - Friday, October 29, 2010 1:32:15 PM
content_postal_item_type
vnd.android.cursor.item/postal-address
satya - Friday, October 29, 2010 1:45:33 PM
Sorry, the above constant is deprecated
Instead look at the ContactsContract.CommonDataKinds.(SpecificKid).content_type
satya - Friday, October 29, 2010 1:46:40 PM
See this for address content type
See this for address content type
which is
vnd.android.cursor.dir/postal-address_v2
satya - Friday, October 29, 2010 1:48:46 PM
The wellknown common data kinds are
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.
satya - Friday, October 29, 2010 1:56:01 PM
Relationship
Raw Contacts
**************
gmail/rc1 - rawcontact1 (rc1)
gmail/rc2 - rawcontact 2 (rc2)
Data
*********
rc1 name satya
rc1 email home a@a.com
rc1 im aol a@aol.com
rc1 im yahoo a@yahoo.com
rc2 name jay
rc2 home address (street1, city2, state)
satya - Friday, October 29, 2010 1:59:16 PM
rawcontact aggregation depends on
structured name
organization
phone number
email
nickname
satya - Friday, October 29, 2010 2:08:20 PM
Adding a raw contact first
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);
satya - Friday, October 29, 2010 3:43:02 PM
android contacts default account type name
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
satya - Friday, October 29, 2010 3:51:38 PM
Some info link on contact types and accounts
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.
satya - Friday, October 29, 2010 4:33:36 PM
android new contact account choose
android new contact account choose
satya - Friday, October 29, 2010 4:52:37 PM
android emulator syncing sntp
android emulator syncing sntp
satya - Friday, October 29, 2010 4:59:01 PM
can i turn on the sync in the emulator
can i turn on the sync in the emulator
based on this link people are having issues
satya - Friday, October 29, 2010 5:01:36 PM
People seem to suggest that you need a real device
People seem to suggest that you need a real device
because google gmail requires a real ID of the device
satya - Friday, October 29, 2010 5:03:34 PM
android emulator syncing
android emulator syncing
Search for: android emulator syncing
This is a better search
satya - Friday, October 29, 2010 5:18:01 PM
gmail in android emulator
gmail in android emulator
satya - Wednesday, January 12, 2011 11:43:39 AM
To see gmail account setup in the emulator you may need to install the google api optional component
To see gmail account setup in the emulator you may need to install the google api optional component
I am checking now.
satya - Wednesday, January 12, 2011 4:31:54 PM
That indeed is the fact
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.