private static final String UNREAD_SELECTION = "(read=0 OR seen=0)"; //get sms unread count Cursor cursor = resolver.query(Sms.Inbox.CONTENT_URI, null, UNREAD_SELECTION, null, null); int sms_unread_count = cursor.getCount(); //get mms unread count Cursor cursor = resolver.query(Mms.Inbox.CONTENT_URI, null, UNREAD_SELECTION, null, null); int mms_unread_count = cursor.getCount(); return (sms_unread_count + mms_unread_count);
Android查找未读短信和彩信
猜你喜欢
转载自ericchan2012.iteye.com/blog/1622405
今日推荐
周排行