Android簡訊操作常見協議和常用程式碼

NO IMAGE

content://sms/inbox    收件箱 
content://sms/sent    已傳送 
content://sms/draft    草稿 
content://sms/outbox    發件箱 
content://sms/failed    傳送失敗 
content://sms/queued    待傳送列表


sURLMatcher.addURI("sms", null, SMS_ALL); 
sURLMatcher.addURI("sms", "#", SMS_ALL_ID); 
sURLMatcher.addURI("sms", "inbox", SMS_INBOX); 
sURLMatcher.addURI("sms", "inbox/#", SMS_INBOX_ID); 
sURLMatcher.addURI("sms", "sent", SMS_SENT); 
sURLMatcher.addURI("sms", "sent/#", SMS_SENT_ID); 
sURLMatcher.addURI("sms", "draft", SMS_DRAFT); 
sURLMatcher.addURI("sms", "draft/#", SMS_DRAFT_ID); 
sURLMatcher.addURI("sms", "outbox", SMS_OUTBOX); 
sURLMatcher.addURI("sms", "outbox/#", SMS_OUTBOX_ID); 
sURLMatcher.addURI("sms", "undelivered", SMS_UNDELIVERED); 
sURLMatcher.addURI("sms", "failed", SMS_FAILED); 
sURLMatcher.addURI("sms", "failed/#", SMS_FAILED_ID); 
sURLMatcher.addURI("sms", "queued", SMS_QUEUED); 
sURLMatcher.addURI("sms", "conversations", SMS_CONVERSATIONS); 
sURLMatcher.addURI("sms", "conversations/*", SMS_CONVERSATIONS_ID); 
sURLMatcher.addURI("sms", "raw", SMS_RAW_MESSAGE); 
sURLMatcher.addURI("sms", "attachments", SMS_ATTACHMENT); 
sURLMatcher.addURI("sms", "attachments/#", SMS_ATTACHMENT_ID); 
sURLMatcher.addURI("sms", "threadID", SMS_NEW_THREAD_ID); 
sURLMatcher.addURI("sms", "threadID/*", SMS_QUERY_THREAD_ID); 
sURLMatcher.addURI("sms", "status/#", SMS_STATUS_ID); 
sURLMatcher.addURI("sms", "sr_pending", SMS_STATUS_PENDING); 
sURLMatcher.addURI("sms", "sim", SMS_ALL_SIM); 
sURLMatcher.addURI("sms", "sim/#", SMS_SIM);

您可能感興趣的文章:

Android程式設計實現讀取手機聯絡人、撥號、傳送簡訊及長按選單操作方法例項小結Android4.X讀取SIM卡簡訊和聯絡人相關類例項分析Android簡訊傳送器實現方法Android中監聽簡訊的兩種方法Android傳送簡訊功能程式碼Android實現將已傳送的簡訊寫入簡訊資料庫的方法Android實現獲取未接來電和未讀簡訊數量的方法Android SQLite資料庫操作程式碼類分享Android中操作SQLite資料庫快速入門教程Android使用SQLite資料庫的簡單例項Android程式設計之SMS讀取簡訊並儲存到SQLite的方法