Using the Contacts.People Database

0 views
Skip to first unread message

Nwokedi Idika

unread,
Mar 19, 2010, 8:09:53 PM3/19/10
to purdue-androi...@googlegroups.com
According to http://developer.android.com/guide/topics/providers/content-providers.html

you can obtain the number of records in the People database by passing People._COUNT as one of the projection parameters to Activity's managedQuery or ContentResolver's query methods, but this is false.

You will receive an IllegalStateException.  And when you dig deeper, you'll find that the exception stems from the a "count" column not existing in the People database.

This only relevant if you're building an app that uses Android 1.6



 
Reply all
Reply to author
Forward
0 new messages