3、} 5. 6. // Get ready to write to disk. 7. prepareForSave(true /* notify */); 8. 9. // We need the recipient list for both SMS and MMS. 10. final Conversation conv = mConversation; 11. String msgTxt = mText.toString(); 1
4、2. 13. if (requiresMms()
5、
6、 addressContainsEmailToMms(conv, msgTxt)) { 14. // Make local copies of the bits we need for sending a message, 15. // because we will be doing it off of the main thread, which will 16. // immedi
7、ately continue on to resetting some of this state. 17. final Uri mmsUri = mMessageUri; 18. final PduPersister persister = PduPersister 19. .getPduPersister(mContext); 20. 21. final SlideshowModel slideshow =
8、 mSlideshow; 22. final SendReq sendReq = makeSendReq(conv, mSubject); 23. 1. // Make sure the text in slide 0 is no longer holding onto a 2. // reference to the text 3. // in the message text box. 4. slide
9、show.prepareForSend(); 5. 6. // Do the dirty work of sending the message off of the main UI 7. // thread. 8. new Thread(new Runnable() { 9. public void run() { 10. sendMmsWorker(conv, mmsUri, p
10、ersister, slideshow, sendReq); 11. } 12. }).start(); 13. } else { 14. // Same rules apply as above. 15. final String msgText = mText.toString();