Email Client")); Ten, Direct texting Uri uri= uri.parse ("smsto://100861"); Intent Intent = new Intent (intent.action_sendto, URI); Intent.putextra ("Sms_body", "Android Send mail Test http://www.android-study.net"); Xi. send MMS Uri uri= uri.parse ("Content://media/external/images/media/23"); Intent Intent =
("Tel. xxxxxx ");2. Intent it = new intent (intent. action_call, Uri );3. To use this function, you must add
Send SMS/MMSSend SMS by calling
Program
1. Intent it = new intent (intent. action_view );2. it. putextra ("sms_body", "the SMS text ");3. It. settype ("Vnd. Android-DIR/MMS-SMS ");4. startactivity (it );
Send
A. MMS Send:MMS is much more troublesome than SMS. You can see from the parameters of the Sendmmsworker function: (CONV, Mmsuri, Persister, slideshow, sendreq) context, Uri,pdupersister (MMS is a PDU), slideshow Contains all the MMS information, Sendreq contains the headers of the MIME package MMS, also includes inform
() --> recipientsadapter: BindView (..)
Here, the function runqueryonbackgroundthread is to query the qualified recipient number or email address from the database; BindView is to insert the queried items into the listview as items.
B ,....5. Send MMs.
Take sending in composemessageactivity as an example.
Save it as a draft --> call composemessageactivity: sendmmsworker (...) --> mmsmessagesender: sendmess
in Packages\apps\mms\src\com\android\mms\ui\uriimage.javaInitfromcontenturi functionPlease find this code:M:code analyze 003, for fix bug ALPS00278013, send the MmsWith a image from phone to email,but the image name changedTo number and the suffix are lost when received. @{FilePath = Uri.getpath ();FilePath = c.getstri
Please indicate the source for reprinting. Thank you!
1. install and configure the eclipse Development Environment (For details, refer to the articles on Environment setup)
2. Import the MMS source code. File-> Import-select the MMS source code directory
Three projects will be imported: Main project file: COM. Android. mms
Android MMS reception-Application Layer1. The source file code is in packages/apps/MMS and involves the following main classes: MMS-related classes.
Com. Android. mms. transaction. pushreceivercom.
The MMS operation on the MMS (Multimedia Messaging Service) in Android is related to the MMS protocol, which is completed through the API provided in frameworks: COM. google. android. the MMS package is not open in the SDK and can
Slideview.java this displayaudioinfo () function should be changed to publicIn Packages/apps. Mms/src/com/android/mms/ui/slideshowpresenter.java revision changed toif (action = = mediaaction.no_active_action) {M:code analyze 006, Fix bug ALPS00272535,Can ' t return even if no_active_action @{Presentaudio (view, (Audiomodel) media, true);((Slideview) view). Displa
1. view the mechanism of SMS re-sending: main log: the re-transmission will be performed in hanldeSmsSent () only when the sending fails due to radio off or no service. The result is RESULT_ERROR_RADIO_OFF/RESULT_ERROR_NO_SERVICE, in either case, the SMS will be re-transmitted. For more information about this function, see SmsReceiverService. java.
To sum up our current retransmission mechanism:
Modem has two types of retransmission:
1. When CP_DATA is sent, CP_DATA will be re-transmitted withou
Android mobile Internet access and mms apn settings
Godaddy latest Domain Name discount code -
Handsome guy recommends blog host -
Linost Christmas promotion refund -
Iphone4 sales status query
A few days ago, my younger brother ran to ask me how G2 (MAGIC) could never receive a mobile phone report?
I asked him if he set the APN. He asked me what the APN is?
I was dizzy and did forget to set it fo
The contact person is important to MMS because each recipient of the conversation is a contact, and when you create a new message, you can enter any information about the contact, such as the number or name, and MMS can send the information to the appropriate person. MMS is used to represent a contact person, it contai
Android Source Code adds a trigger in the mms sms table and the mms pdu table.
CREATE TRIGGER delete_obsolete_threads_pdu AFTER DELETE ON pdu BEGIN DELETE FROM threads WHERE _id = old.thread_id AND _id NOT IN (SELECT thread_id FROM sms UNION SELECT thread_id from pdu); END
If the threads table does not have an external reference of SMS or p
MMS portal analysis:
The two most important activities in MMS are:Conversationlist(SMS list), the other isComposemessageactivity(Single conversation or text message ). Each composemessageactivity record belongs to a conversation or does not belong to any conversation (no recipient draft). Each converation is distinguished by an independent threadid. Each converation has a unique workingmessage indicating th
The contact is very important to MMS, because the recipient of each conversation is a contact. When creating information, you can enter any information of the contact, such as the number or name, MMS can send the information to the corresponding person. The class contact in MMS is used to represent a contact. It contai
1. The sequence chart 1.1 of wappush reception is shown in the following figure:
Ii. add and delete MMS attachments
Add MMS attachments: The addattachment (INT type) function in composemessageactivity is divided into seven cases based on the type.
Mediaselectlistactivity. add_image
Mediaselectlistactivity. take_picture
Mediaselectlistactivity. add_video
Mediaselectlistactivity. record_video
Mediaselectl
In MMS, eachThreadhas a corresponding contact, butThreadsThe table does not directly save the contact's information (number or name), but instead saves a message calledrecipient_id, there is also a class calledData/recipientidcache.javaspecialize in managing it.There is a special table in the database to save itcanonical_addresses。 Its purpose is to be able to quickly find information about a contact person in a conversation. Table of DialogsThreadsTh
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.