social api
satya - Thursday, November 17, 2011 9:40:02 AM
Previous notes on contacts
satya - Thursday, November 17, 2011 9:44:18 AM
android social api contacts api
android social api contacts api
satya - Thursday, November 17, 2011 10:17:01 AM
The main changes are documented here for the social api
satya - Thursday, November 17, 2011 10:25:57 AM
The profile contract introduced in api 14
satya - Thursday, November 17, 2011 11:28:08 AM
looks like a new table is introduced
contactscontract.profile
satya - Thursday, November 17, 2011 11:31:39 AM
Read this quote
Android now includes a personal profile that represents the device owner, as defined by the ContactsContract.Profile table. Social apps that maintain a user identity can contribute to the user's profile data by creating a new ContactsContract.RawContacts entry within the ContactsContract.Profile. That is, raw contacts that represent the device user do not belong in the traditional raw contacts table defined by the ContactsContract.RawContacts Uri; instead, you must add a profile raw contact in the table at CONTENT_RAW_CONTACTS_URI. Raw contacts in this table are then aggregated into the single user-visible profile labeled "Me".
satya - Thursday, November 17, 2011 11:34:20 AM
Likely translation
there is a new table on the block: profile
raw contacts can be added to this profile table directly. These raw contacts are DIFFERENT from the entries in the previous "rawcontacts" table entirely. They are treated differently.
raw contacts from the profile table are aggretaged into "ME"
So the contact aggregation and the values in the traditional raw contact table apply only to "OTHER PEOPLE" but not to you.
satya - Thursday, November 17, 2011 11:35:02 AM
well don't you want to take a look at the profile table definition??
well don't you want to take a look at the profile table definition??
satya - Thursday, November 17, 2011 11:35:52 AM
The table definitions for other contact related tables are here
The table definitions for other contact related tables are here
satya - Thursday, November 17, 2011 11:42:35 AM
see this link to see how to explore the contacts db through sqlite tools
see this link to see how to explore the contacts db through sqlite tools
satya - Thursday, November 17, 2011 1:29:52 PM
ICS Andorid 4.0 users guide
satya - Thursday, November 17, 2011 10:01:01 PM
To see how the new contacts application works take a look at this UI pictures
To see how the new contacts application works take a look at this UI pictures
satya - Thursday, November 17, 2011 10:03:11 PM
Here is how you can download the contacts databases
Use the file explorer in eclipse to see this director structure under
/data/data/com.android.providers.contacts
satya - Thursday, November 17, 2011 10:08:33 PM
You can download the sample profile.db here
You can download the sample profile.db here
Please note that this is a database file that you can use with sql tools to explore it to see the table definitions.
satya - Thursday, November 17, 2011 10:09:12 PM
Here is a sample contacts.db
satya - Thursday, November 17, 2011 10:10:40 PM
The goal is to see what tables are there in the profile.db
And see how contacts are entered into the profile database. I thought this was just a table in the contacts database. But looks like it is a database by itself.
satya - Thursday, November 17, 2011 10:31:53 PM
profile.db seem to have th same tables as the contacts.db
Looks like the profile database parallels the contacts database and may use similar priciples to aggregate information from multiple accounts.
satya - Friday, November 18, 2011 11:17:18 AM
establishing a profile
The user's profile entry cannot be created explicitly (attempting to do so will throw an exception). When a raw contact is inserted into the profile, the provider will check for the existence of a profile on the device. If one is found, the raw contact's CONTACT_ID column gets the _ID of the profile Contact. If no match is found, the profile Contact is created and its _ID is put into the CONTACT_ID column of the newly inserted raw contact.
satya - Friday, November 18, 2011 11:18:11 AM
A user profile is a single contact
that sits separately from other contacts. But it behaves like other contacts except that it is just one.
satya - Friday, November 18, 2011 1:49:35 PM
Key researech areas
Can I read a profile?
Can I add a raw contact to a profile?
Can I add multiple raw contacts per account in a profile?
Can I add more data fields to a profile?
Where is the user guide?
satya - Friday, November 18, 2011 3:47:46 PM
On a profile you can see
quick contacts
shortcut to phones
texting
..elments inside social networks!!
satya - Friday, November 18, 2011 4:22:54 PM
android people app add connection
android people app add connection
satya - Friday, November 18, 2011 4:26:21 PM
google nexus s 4.0 ics user guide
google nexus s 4.0 ics user guide
satya - Friday, November 18, 2011 4:54:13 PM
invite_contact intent
This is the intent that is fired when the user clicks the "invite to the network" button on a contact. Only sent to an activity which is explicitly registered by a contact provider which supports the "invite to the network"
satya - Friday, November 18, 2011 9:50:00 PM
ContactsContract.Profile.CONTENT_RAW_CONTACTS_URI
content://com.android.contacts/profile/raw_contacts
satya - Friday, November 18, 2011 10:33:09 PM
contactscontract.profile
contactscontract.profile
Search Google for: contactscontract.profile
Search Android Developers Group for: contactscontract.profile
Search Android Beginers Group for: contactscontract.profile
Search Google Code for: contactscontract.profile
Search Android Issues Database for: contactscontract.profile
satya - Monday, November 21, 2011 10:09:44 AM
profile Data.content_uri
profile Data.content_uri
satya - Monday, November 21, 2011 10:14:23 AM
android contacts is_user_profile
android contacts is_user_profile
satya - Monday, November 21, 2011 10:15:13 AM
RAW_CONTACT_IS_USER_PROFILE
RAW_CONTACT_IS_USER_PROFILE
satya - Monday, November 21, 2011 11:29:24 AM
RawContactsEntity now has a URI for profile data
satya - Thursday, November 24, 2011 8:43:15 AM
how can I use the share intent in android
how can I use the share intent in android
Search for: how can I use the share intent in android
How can I send an email or a text message from an application to one or a group of contacts?
satya - Thursday, November 24, 2011 8:48:31 AM
Here is how you can print some of the URIs from the ContactsContract
public void printVariousUris()
{
show("Data.Content_uri:" + Data.CONTENT_URI);
show("ContactsContract.Profile.CONTENT_RAW_CONTACTS_URI:"
+ ContactsContract.Profile.CONTENT_RAW_CONTACTS_URI);
show("ContactsContract.Profile.CONTENT_URI:"
+ ContactsContract.Profile.CONTENT_URI);
show("ContactsContract.RawContacts.CONTENT_URI:"
+ ContactsContract.RawContacts.CONTENT_URI);
show("ContactsContract.RawContactsEntity.PROFILE_CONTENT_URI:"
+ ContactsContract.RawContactsEntity.PROFILE_CONTENT_URI);
show("ContactsContract.RawContactsEntity.CONTENT_URI:"
+ ContactsContract.RawContactsEntity.CONTENT_URI);
}