String[] CALL_LOG_PROJECTION = new String[] { CallLog.Calls._ID, CallLog.Calls.NUMBER, CallLog.Calls.DATE, CallLog.Calls.DURATION, CallLog.Calls.TYPE, CallLog.Calls.CACHED_NAME, CallLog.Calls.CACHED_NUMBER_TYPE, CallLog.Calls.CACHED_NUMBER_LABEL, "COUNT(*) AS " + CALLS_COUNT }; String selection = "0==0) GROUP BY (" + CallLog.Calls.NUMBER; c = resolver.query(CallLog.Calls.CONTENT_URI, CALL_LOG_PROJECTION,selection, null,CallLog.Calls.DEFAULT_SORT_ORDER + " limit "+size);
ContentResolver.query()分组查询通话记录
最新推荐文章于 2020-12-30 14:31:14 发布