質問編集履歴

1

コードの追記

2016/12/02 00:12

投稿

hanhunhun
hanhunhun

スコア100

test CHANGED
File without changes
test CHANGED
@@ -13,3 +13,39 @@
13
13
 
14
14
 
15
15
  何卒よろしくお願い申し上げます
16
+
17
+
18
+
19
+ ※参考コード追記
20
+
21
+
22
+
23
+ ```Java
24
+
25
+ ContentResolver mCResolver = null;
26
+
27
+ mCResolver = getContentResolver();
28
+
29
+ String[] projection = new String[] { ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME };
30
+
31
+ String order = ContactsContract.CommonDataKinds.Phone.PHONETIC_NAME+ " ASC," +
32
+
33
+ ContactsContract.CommonDataKinds.StructuredName.PHONETIC_FAMILY_NAME + " ASC," +
34
+
35
+ ContactsContract.CommonDataKinds.StructuredName.PHONETIC_GIVEN_NAME + " ASC";
36
+
37
+ Cursor cursor = mCResolver.query(
38
+
39
+ ContactsContract.Contacts.CONTENT_URI,
40
+
41
+ null,
42
+
43
+ null,
44
+
45
+ null,
46
+
47
+ ContactsContract.Contacts.DISPLAY_NAME + " ASC"
48
+
49
+ );
50
+
51
+ ```