From 55980386fa786081523df43316bfd4456a6eada9 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 26 Mar 2012 05:34:16 -0700 Subject: [PATCH] test for mobile numbers works only on my ICS device, so comment out for now. --- .../eehouse/android/xw4/SMSInviteActivity.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java index 1d1e7ad95..eb5c2672a 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSInviteActivity.java @@ -136,23 +136,19 @@ public class SMSInviteActivity extends InviteActivity { String id = cursor.getString( index ); ContentResolver resolver = getContentResolver(); Cursor pc = - resolver.query( CommonDataKinds.Phone.CONTENT_URI, - null, - CommonDataKinds.Phone.CONTACT_ID + " = ?", + resolver.query( Phone.CONTENT_URI, null, + Phone.CONTACT_ID + " = ?", new String[] { id }, null ); String name = ""; while ( pc.moveToNext() ) { name = - pc.getString( pc.getColumnIndex( CommonDataKinds. - Phone.DISPLAY_NAME)); + pc.getString( pc.getColumnIndex( Phone.DISPLAY_NAME)); String number = - pc.getString( pc.getColumnIndex( CommonDataKinds. - Phone.NUMBER ) ); - int type = - pc.getInt( pc.getColumnIndex( CommonDataKinds. - Phone.TYPE ) ); + pc.getString( pc.getColumnIndex( Phone.NUMBER ) ); + // int type = + // pc.getInt( pc.getColumnIndex( Phone.TYPE ) ); - if ( Phone.TYPE_MOBILE == type && 0 < number.length() ) { + if ( /*Phone.TYPE_MOBILE == type && */0 < number.length() ) { m_names.add( name ); m_phones.add( number ); }