Hi,
I am trying to retrieve the phone number for a given contact. However,
the managedQuery function call always terminates my application. No
matter what I change my query to, the managedQuery seems to crash all
the time.
What could be the problem? Could it be that the contacts db file is in
a different location or something?
My code looks like this:
public void getContactNumber() {
String[] projection = new String[]
{android.provider.Contacts.Phones.NUMBER};
Cursor managedCursor =
managedQuery(android.provider.Contacts.People.CONTENT_URI,
projection,
android.provider.Contacts.Phones.NAME + "=\'" +
"A" + "\'", null, null);
}
where the name of the given contact is "A".
Glenys
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---