so easy :
public ArrayList<systemcalllog> queryAllCallLog() {
ArrayList<systemcalllog> result = null;
final ContentResolver contentResolver = mContext.getContentResolver();
Cursor cursor = contentResolver.query(CallLog.Calls.CONTENT_URI, null,
null, null, SystemCallLog.Columns.DATE
+ " COLLATE LOCALIZED desc");
if (null != cursor) {
result = new ArrayList<systemcalllog>();
SystemCallLog item = null;
while (cursor.moveToNext()) {
item = SystemCallLog.formatCursor(cursor);
result.add(item);
}
cursor.close();
}// end if
return result;
}
</systemcalllog></systemcalllog></systemcalllog>
if you want to know more about that ,just flow:http://www.cppcode.com....
gagagaga....