Android 2.3发短信详细流程(6)
Message msg;
msg = mSender.obtainMessage(EVENT_SEND, rr);
acquireWakeLock();
msg.sendToTarget();
}
OK!在sendSMS()方法中,我们把上面所传下来的东东写入到Parcel中,协同一个特殊的RILRequest被发送出去,发送到哪里了?接着看:view plaincopy to clipboardprint?public void
handleMessage(Message msg) {
RILRequest rr = (RILRequest)(msg.obj);
RILRequest req = null;
switch (msg.what) {
case EVENT_SEND:
boolean alreadySubtracted = false;
try {
LocalSocket s;
......
s.getOutputStream().write(dataLength);
s.getOutputStream().write(data);
} catch (IOException ex) {
......
}
break;
}
}
public void
handleMessage(Message msg) {
RILRequest rr = (RILRequest)(msg.obj);
RILRequest req = null;
switch (msg.what) {
相关新闻>>
- 发表评论
-
- 最新评论 更多>>