當前位置:名人名言大全網 - 短信平臺 - android 如何讀取系統最新短信

android 如何讀取系統最新短信

加壹個排序條件就行了

ContentResolver resolver = getContentResolver();

Uri uri = Uri.parse("content://sms/");

Cursor cursor = resolver.query(uri, null, null, null, "date");

或者是Cursor cursor = resolver.query(uri, null, null, null, "date desc");