Hi

When I run the following lines in my code, I get the error
java.lang.IllegalArgumentException:  Unknown URL content://contacts



String[] PEOPLE_PROJECTION = new String[] {
                        Contacts.People._ID,
                        Contacts.People.NAME,
                        Contacts.People.NUMBER_KEY
                        };
____________________________________________________________

        Cursor cursor = managedQuery(Contacts.CONTENT_URI,
            PEOPLE_PROJECTION, null, null,
Contacts.People.DEFAULT_SORT_ORDER);
    int name = cursor.getColumnIndex(Contacts.People.NAME);



Kindly help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to