代码在samsung ace,sony ericson x10等其他设备上运行得非常好,但在HTC explorer中,会话计数返回错误计数。感谢您的关注,我的代码如下所述: -
final String[] projection = new String[] { "*" };
Uri uri = Uri.parse("content://mms-sms/conversations/"); // ?simple=true
Cursor cursorCoversation = mContext.getContentResolver().query(uri,
projection, null, null, null);
cursorCoversation.getCount()