Not Contacts.Phones - ContactsContract.CommonDataKinds.Phone
On Nov 7, 2009 12:10 PM, "Ravi" <[email protected]> wrote:
Looking deeper for #1: I though Phone.XXX is depricated ? My code is
working perfect to 1.6, 2.0 is where I am not getting any thing.. here
is snipped i had in 1.6
String[] projection = {
android.provider.Contacts.Phones.NAME,
android.provider.Contacts.Phones.NUMBER,
android.provider.Contacts.Phones.TYPE,
android.provider.Contacts.Phones.LABEL,
android.provider.Contacts.Phones._ID };
Cursor c = context.getContentResolver().query(
android.provider.Contacts.Phones.CONTENT_URI,
projection,
null,
null,
android.provider.Contacts.Phones.NAME + " ASC ");
while(c.movetToNext()){
// do work
}
if I switch to 1.6 I am getting results with the same code... I am
going to try #3 from your suggestion
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group...
--
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