2012-04-13 138 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");