나는 다음과 같은 코드를 사용하여 연락처 목록을 읽으려고하고있는 수를 반환 NUMBER_KEY 이유 :안드로이드 : 역순으로
ContentResolver cr = getContentResolver();
Cursor cur = cr.query(People.CONTENT_URI,null, null, null, null);
if (cur.getCount() > 0) {
while (cur.moveToNext())
{
String id = cur.getString(cur.getColumnIndex(People._ID));
Cursor personCur = cr.query(Contacts.Phones.CONTENT_URI,
null,
Contacts.Phones.PERSON_ID +"= ?"+ Contacts.Phones.NUMBER_KEY ,
new String[]{id}, null);
String phoneKey = "";
while (personCur.moveToNext()) {
phoneKey = personCur.getString(personCur.getColumnIndex(Contacts.Phones.NUMBER_KEY));
}
문제는 전화 번호가 054- 경우 역순으로 phoneKey 복귀 의미이다 123-4567 값은 7654321450
이 문제에 대한 설명서를 찾을 수 없습니다. 문제를 해결하는 방법을 알려주세요. 또는 예상 된 결과입니까?
감사 -Z