At last i have made an array String in all the Versions of the Contacts i have, since it is the same this means that the Contacts table has not been changed, i have not found any other way, this is my Code
private String sGetCurrentContatcsVersions() {
Cursor allContacts = mContext.getContentResolver().query(
ContactsContract.RawContacts.CONTENT_URI, null, null, null, null);
StringBuilder sbCurrentVersion = new StringBuilder();
allContacts.moveToFirst();
for (int i = 0; i < allContacts.getCount(); i++) {
if (!TimelineService.bScannerIsRunning) {
break;
}
int col = allContacts.getColumnIndex(ContactsContract.RawContacts.VERSION);
sbCurrentVersion.append(allContacts.getString(col));
allContacts.moveToNext();
}
return sbCurrentVersion.toString();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…