How do I get the count of SMS messages per contact into a textview?
问题 I have a listview that displays the contacts on my device. What I'm trying to do is display the number of text messages my device has received from each contact into a textview within my listview. I have only been able to display the total number of text messages within my inbox from this code: // gets total count of messages in inbox String folder = "content://sms/inbox"; Uri mSmsQueryUri = Uri.parse(folder); String columns[] = new String[] {"person", "address", "body", "date","status"};