ContactsContract and IM information

Put your problem here if it does not fit any of the other categories.

ContactsContract and IM information

Postby malianx » Tue Jan 19, 2010 5:29 am

I have managed to get several working sets from the ContactsContract api, however for the life of me I cannot find the URI/Column combination that holds the information for IM_PROTOCOL and IM_NAME.

I've tried:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. Cursor myCursor =
  3.  
  4.                         getContentResolver().query(
  5.  
  6.                                         ContactsContract.StatusUpdates.CONTENT_URI,
  7.  
  8.                                         null,
  9.  
  10.                                         null,
  11.  
  12.                                         null,
  13.  
  14.                                         ContactsContract.Contacts.DISPLAY_NAME + " ASC");
  15.  
  16.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

and
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  
  3.  
  4.                 Cursor myCursor =
  5.  
  6.                         getContentResolver().query(
  7.  
  8.                                         ContactsContract.Presence.CONTENT_URI,
  9.  
  10.                                         null,
  11.  
  12.                                         null,
  13.  
  14.                                         null,
  15.  
  16.                                         ContactsContract.Contacts.DISPLAY_NAME + " ASC");
  17.  
  18.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


And everything else I could think of... everything returns null for those fields, even though the contact has a AIM name and a Gtalk name set up in Contacts.

Any ideas where those fields are?
malianx
Freshman
Freshman
 
Posts: 4
Joined: Sat Jan 16, 2010 8:41 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests