---
title: "android 彩信分析"
author: "mars5337"
date: "2010-08-08T22:12:56Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2010-08-08T22:12:56Z"
id: 732262
url: "https://mars5337.iteye.com/blog/732262"
---

interface : BaseColumns ,TextBasedSmsColumns

Telephony.Sms.CONTENT_URI =content://sms

--收件箱Inbox

Telephony.Sms.Inbox.CONTENT_URI =content://sms/inbox

--已发送Sent

Telephony.Sms.Inbox.CONTENT_URI =content://sms/sent

--草稿箱Draft

Telephony.Sms.Inbox.CONTENT_URI =content://sms/draft

--发件箱Outbox

Telephony.Sms.Inbox.CONTENT_URI =content://sms/outbox

--会话Conversations
Telephony.Sms.Inbox.CONTENT_URI =content://sms/outbox

--Intents
包含和SMS有关的广播信息

--------------------------------------彩信部分：
BaseColumns    id和字典条数
	BaseMmsColumns 彩信表的所有列

	CanonicalAddressesColumns 用于MMS或sms的一个地址

	ThreadsColumns  表threads的所有列

		Threads	表threads的一些帮助功能

	Mms	包含所有彩信信息

--收件箱Inbox

Telephony.Mms.Inbox.CONTENT_URI =content://mms/inbox

--已发送Sent

Telephony.Mms.Sent.CONTENT_URI =content://mms/sent

--草稿箱Draft

Telephony.Mms.Draft.CONTENT_URI =content://mms/draft

--发件箱Outbox

Telephony.Mms.Outbox.CONTENT_URI =content://mms/outbox


--Addr    implements BaseColumns

--Part    implements BaseColumns

--Rate

--ScrapSpace

--Intents


final Uri mmsUri = mMessageUri;  //need
            final PduPersister persister = PduPersister.getPduPersister(mContext);//need

            final SlideshowModel slideshow = mSlideshow;
            final SendReq sendReq = makeSendReq(conv, mSubject);

            // Make sure the text in slide 0 is no longer holding onto a reference to the text
            // in the message text box.
            slideshow.prepareForSend();

            // Do the dirty work of sending the message off of the main UI thread.
            new Thread(new Runnable() {
                public void run() {
                    sendMmsWorker(conv, mmsUri, persister, slideshow, sendReq);
                }
            }).start();
当前会话 ok
，Uri ok，persisteer ok，

sendReq，ok

slideshow-ok
SlideshowModel slideshow = SlideshowModel.createNew(mContext);
        SlideModel slide = new SlideModel(slideshow);
        slideshow.add(slide);

-----------------------------------彩信和短信

MmsSms  CONTENT_URI=content://mms-sms/

PendingMessages

Carriers

Intents