2012-07-26 70 views
0
mCursor = getContentResolver().query(
      CallLog.Calls.CONTENT_URI, 
      new String []{ "max(date) as max_date", "name", "date","type", "number" }, 
      " 1=1) group by(number ", null, 
      CallLog.Calls.DEFAULT_SORT_ORDER); 

我的查詢是錯誤的,Android:如何從CallLog中刪除重複?

沒有人做過類似的查詢,

如何查詢結果沒有重複?

謝謝!

回答

0

試試這個:

String strGroupBy = " 1=1) group by("+android.provider.CallLog.Calls.NUMBER;