我可以從我的聯繫人列表中獲取聯繫人ID和姓名。但是LAST_TIME_CONTACTED返回0.如何正確獲取LAST_TIME_CONTACTED?LAST_TIME_CONTACTED返回0
我的代碼:
ContentResolver cr = getContentResolver();
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
if (cur.getCount() > 0)
{
while (cur.moveToNext())
{
String id = cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
String name = cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
String last = cur.getString(cur.getColumnIndex(ContactsContract.Contacts.LAST_TIME_CONTACTED));
}
}
我在手機中有[當前被叫ID](https://play.google.com/store/apps/details?id=com.webascender.callerid)。它列出了我上次聯繫的所有聯繫人信息。它如何實現這一目標? – user4757345
可能是一個自定義的SQLite數據庫。 –