|
|
@@ -112,10 +112,14 @@ public class ContactsManager {
|
|
|
|
|
|
public String getContactID(String name) {
|
|
|
String id = "0";
|
|
|
+
|
|
|
+
|
|
|
+// ContactsContract.Contacts.DISPLAY_NAME_ALTERNATIVE
|
|
|
+
|
|
|
Cursor cursor = contentResolver.query(
|
|
|
ContactsContract.Contacts.CONTENT_URI,
|
|
|
new String[]{ContactsContract.Contacts._ID},
|
|
|
- ContactsContract.Contacts.DISPLAY_NAME +
|
|
|
+ ContactsContract.Contacts.DISPLAY_NAME_ALTERNATIVE +
|
|
|
"='" + name + "'", null, null);
|
|
|
if(cursor.moveToNext()) {
|
|
|
id = cursor.getString(cursor.getColumnIndex(
|