2017-07-28 71 views
0

這是我的代碼的過程,但它返回重複數我想來電號碼從通話記錄中,但沒有重複號,如果重複相同數量的

Cursor c = getApplicationContext().getContentResolver() 
       .query(CallLog.Calls.CONTENT_URI, null, CallLog.Calls.TYPE+" = ? ",       
       new String[]{String.valueOf(CallLog.Calls.INCOMING_TYPE)}, 
       CallLog.Calls.DATE + " DESC"); 

      ListView numListView = (ListView) findViewById(R.id.list); 

      CallCursorAdapter adapter = new CallCursorAdapter(this, c); 

      numListView.setAdapter(adapter); 

回答