2012-04-13 104 views

回答

0

这里有详细资料列:(然而,这真的取决于URI,你会为一个查询中使用) http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.7_r1/android/provider/Telephony.java#Telephony.TextBasedSmsColumns

The date the message was sent 
Type: INTEGER (long) 
public static final String DATE = "date"; 

代码获取消息给定的日期(你需要READ_SMS许可):

final Cursor myMessages = context.getContentResolver().query(Uri.parse("content://sms"), new String[] { "address", "_id", "body", "type", "date", "read", "thread_id" }, "date > your_timestamp", null, "date ASC");