MMS URI Structure

 Inspired by a post by CJ a few months ago, and because I ran into the
same problem, I did a little (OK, a LOT) of poring through endless
screens of code, and finally made some headway on how MMS messages are
stored.  Although the documentation blatantly omits this (read:
unsupported, may change in the future, don't rely on it, danger Will
Robinson) the list of supported URIs for accessing the parts of MMSes
is pasted below directly from the MMSprovider.java file.  Each of
these is preceded by "content://mms/", and the # sign means that you
put in a number (ID) to select a specific record.  I hope others will
find this to be the breakthrough that I found it to be!

Example: To find a certain MMS record whose ID is 326 in the Inbox,
use the URI "content://mms/inbox/326"
To return all addresses related to message ID 326, use "content://mms/
326/addr"

sURLMatcher.addURI("mms", null,         MMS_ALL);
sURLMatcher.addURI("mms", "#",          MMS_ALL_ID);
sURLMatcher.addURI("mms", "inbox",      MMS_INBOX);
sURLMatcher.addURI("mms", "inbox/#",    MMS_INBOX_ID);
sURLMatcher.addURI("mms", "sent",       MMS_SENT);
sURLMatcher.addURI("mms", "sent/#",     MMS_SENT_ID);
sURLMatcher.addURI("mms", "drafts",     MMS_DRAFTS);
sURLMatcher.addURI("mms", "drafts/#",   MMS_DRAFTS_ID);
sURLMatcher.addURI("mms", "outbox",     MMS_OUTBOX);
sURLMatcher.addURI("mms", "outbox/#",   MMS_OUTBOX_ID);
sURLMatcher.addURI("mms", "part",       MMS_ALL_PART);
sURLMatcher.addURI("mms", "#/part",     MMS_MSG_PART);
sURLMatcher.addURI("mms", "part/#",     MMS_PART_ID);
sURLMatcher.addURI("mms", "#/addr",     MMS_MSG_ADDR);
sURLMatcher.addURI("mms", "rate",       MMS_SENDING_RATE);
sURLMatcher.addURI("mms", "report-status/#",  MMS_REPORT_STATUS);
sURLMatcher.addURI("mms", "report-request/#", MMS_REPORT_REQUEST);
sURLMatcher.addURI("mms", "drm",        MMS_DRM_STORAGE);
sURLMatcher.addURI("mms", "drm/#",      MMS_DRM_STORAGE_ID);

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值