2012-04-13 4 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"); 
関連する問題