[ComposeMessageActivity.java]
confirmSendMessageIfNeeded()
sendMessage()
[WorkingMessage.java]
send()
sendSmsWorker(conv, msgText)
[SmsMessageSender.java]
sendMessage(threadId)
- frameworks
[SmsManager.java]
1.sendMultipartTextMessage(mDests[i], mServiceCenter, messages, sentIntents, deliveryIntents)
2.sendTextMessage()
[IccSmsInterfaceManager.java] - ISms.aidl (ISms_Stub.java)
권한승인 -
PhoneBase.getContext().enforceCallingPermission("android.permission.SEND_SMS","Sending SMS message");
1.sendMultipartText(destinationAddress, scAddress, parts, sentIntents, deliveryIntents)
2.sendText(destinationAddress, scAddress, text, sentIntent, deliveryIntent)
[GsmSMSDispatcher.java] - extended SMSDispatcher
1.sendMultipartText(destAddr, scAddr, (ArrayList<String>) parts,(ArrayList<PendingIntent>) sentIntents,
(ArrayList<PendingIntent>) deliveryIntents)
SmsMessage.getSubmitPdu(scAddress, destinationAddress,parts.get(i), deliveryIntent != null, SmsHeader.toByteArray(smsHeader),encoding)
sendRawPdu(pdu.encodedScAddress, pdu.encodedMessage, sentIntent, deliveryIntent)
2.sendText(destAddr, scAddr, text, sentIntent, deliveryIntent)
SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(scAddr, destAddr, text, (deliveryIntent != null))
SMSDispatcher.sendRawPdu(pdus.encodedScAddress, pdus.encodedMessage, sentIntent, deliveryIntent)
confirmSendMessageIfNeeded()
sendMessage()
[WorkingMessage.java]
send()
sendSmsWorker(conv, msgText)
[SmsMessageSender.java]
sendMessage(threadId)
- frameworks
[SmsManager.java]
1.sendMultipartTextMessage(mDests[i], mServiceCenter, messages, sentIntents, deliveryIntents)
2.sendTextMessage()
[IccSmsInterfaceManager.java] - ISms.aidl (ISms_Stub.java)
권한승인 -
PhoneBase.getContext().enforceCallingPermission("android.permission.SEND_SMS","Sending SMS message");
1.sendMultipartText(destinationAddress, scAddress, parts, sentIntents, deliveryIntents)
2.sendText(destinationAddress, scAddress, text, sentIntent, deliveryIntent)
[GsmSMSDispatcher.java] - extended SMSDispatcher
1.sendMultipartText(destAddr, scAddr, (ArrayList<String>) parts,(ArrayList<PendingIntent>) sentIntents,
(ArrayList<PendingIntent>) deliveryIntents)
SmsMessage.getSubmitPdu(scAddress, destinationAddress,parts.get(i), deliveryIntent != null, SmsHeader.toByteArray(smsHeader),encoding)
sendRawPdu(pdu.encodedScAddress, pdu.encodedMessage, sentIntent, deliveryIntent)
2.sendText(destAddr, scAddr, text, sentIntent, deliveryIntent)
SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(scAddr, destAddr, text, (deliveryIntent != null))
SMSDispatcher.sendRawPdu(pdus.encodedScAddress, pdus.encodedMessage, sentIntent, deliveryIntent)
'old > sms&mms' 카테고리의 다른 글
soft keyboard 출력 방법 (0) | 2010.07.22 |
---|---|
Internals of Telephony subsystem (0) | 2010.07.09 |
The Radio Interface Layer (RIL) (0) | 2010.07.09 |
Android's Radio Interface Layer(RIL) (0) | 2010.07.08 |
Complete End to End Call Flow of Short Message Service(SMS) (0) | 2010.07.08 |