I'm writing an social networking app on Android (for ICS). I haven't found 
any content uri for user profile stream items like there are for both 
``Contacts`` and ``RawContacts``. 

I'm able to **write** social stream for user profile into streamItems table 
with its raw_contactd, but using the same concept to query for stream items 
in two different ways, both failed with the Exception I've shown below. 
Please note that I'm able to query stream items for other contacts this way.

1). 
    
    profileCursor= getContext().getContentResolver().query(
        Profile.CONTENT_RAW_CONTACTS_URI.buildUpon()
               .appendPath(rawContactId)
               
.appendPath(RawContacts.StreamItems.CONTENT_DIRECTORY).build(),
    null, null, null, null);

2) Query to streamitem uri with 

    rawcontactid = profileRawContactId

Exception as follows:

    V/ContactsProvider(19514): ContactsProvider.query: 
url=content://com.android.contacts/profile/raw_contacts/9223372034707292179/stream_items,
 
match is -1
    E/DatabaseUtils(19514): Writing exception to parcel
    E/DatabaseUtils(19514): java.lang.IllegalArgumentException: URI: 
content://com.android.contacts/profile/raw_contacts/9223372034707292179/stream_items,
 
calling user: com.xyz, calling package:com.xyz

Please help me with this.

Thanks,
Ask

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to