漫游时没有下载彩信?

时间:2018-03-16 23:52:37

标签: android mms android-mms

我正在使用klinker库在Android上接收彩信。一切都设置正确但我认为只有在我漫游时我才会得到以下例外。我确实启用了漫游数据,当我收到彩信时,我必须点击它以便开始下载。以下是手机中漫游SIM卡和手机中本地非漫游SIM卡的日志

不漫游

03-16 16:00:22.562 8745-8880/sample V/Mms: receiving a new mms message
03-16 16:00:22.715 8745-8880/sample V/Mms: receiving on a lollipop+ device
03-16 16:00:22.742 8745-8880/sample V/DownloadManager: receiving with system method
03-16 16:00:22.770 8745-8880/sample V/Mms: PUSH Intent processed.
03-16 16:00:25.224 8745-8745/sample V/MmsReceivedReceiver: MMS has finished downloading, persisting it to the database
03-16 16:00:25.224 8745-8745/sample V/MmsReceivedReceiver: /data/user/0/sample/cache/download.7032006934289480493.dat
03-16 16:00:25.225 8745-8745/sample V/MmsReceivedReceiver: No MMSC information set, so no notification tasks will be able to complete
03-16 16:00:25.238 8745-8745/sample V/MmsConfig: MmsConfig: mUserAgent=motog4, mUaProfUrl=http://uaprof.motorola.com/phoneconfig/motog4/Profile/motog4.rdf
03-16 16:00:25.243 8745-8745/sample D/MmsConfig: MmsConfig.loadFromResources
03-16 16:00:25.249 8745-8745/sample V/MmsConfig: MmsConfig: all settings -- {smsToMmsTextThreshold=6, httpParams=, maxImageWidth=2592, enabledMMS=true, maxImageHeight=1944, aliasEnabled=false, maxMessageSize=1048576, enableMMSReadReports=false, recipientLimit=20, enabledNotifyWapMMSC=false, maxSubjectLength=80, smsToMmsTextLengthThreshold=-1, enableMMSDeliveryReports=false, uaProfTagName=x-wap-profile, enableMultipartSMS=true, aliasMinChars=2, supportMmsContentDisposition=true, allowAttachAudio=true, sendMultipartSmsAsSeparateMessages=false, maxMessageTextSize=-1, supportHttpCharsetHeader=false, emailGatewayNumber=, enableGroupMms=true, aliasMaxChars=48, httpSocketTimeout=60000, config_cellBroadcastAppLinks=true, userAgent=, naiSuffix=, uaProfUrl=, enableSMSDeliveryReports=true, enabledTransID=false}
03-16 16:00:25.264 8745-8745/sample D/DownloadRequest: DownloadRequest.persistIfRequired
03-16 16:00:25.415 8745-8745/sample V/MmsReceivedReceiver: response saved successfully
03-16 16:00:25.416 8745-8745/sample V/MmsReceivedReceiver: response length: 27159
03-16 16:00:25.416 8745-8745/sample D/TEST: MMS CAME IN!!
03-16 16:00:25.416 8745-8745/sample D/TEST: ONRECEIVE CALLED

ROAMING

03-16 19:28:35.802 14841-14918/sample V/Mms: receiving a new mms message
03-16 19:28:36.112 14841-14918/sample V/Mms: receiving on a lollipop+ device
03-16 19:28:36.148 14841-14918/sample V/DownloadManager: receiving with system method
03-16 19:28:36.184 14841-14918/sample V/Mms: PUSH Intent processed.
03-16 19:36:21.717 14841-14841/sample V/MmsReceivedReceiver: MMS has finished downloading, persisting it to the database
03-16 19:36:21.717 14841-14841/sample V/MmsReceivedReceiver: /data/user/0/sample/cache/download.4066077938203007033.dat
03-16 19:36:21.719 14841-14841/sample E/MmsReceivedReceiver: MMS received, file not found exception
                                                                                              java.io.FileNotFoundException: /data/user/0/sample/cache/download.4066077938203007033.dat (No such file or directory)
                                                                                                  at java.io.FileInputStream.open(Native Method)
                                                                                                  at java.io.FileInputStream.<init>(FileInputStream.java:146)
                                                                                                  at MmsReceivedReceiver.onReceive(MmsReceivedReceiver.java:96)
                                                                                                  at com.klinker.android.messaging_sample.MmsReceived.onReceive(MmsReceived.java:14)
                                                                                                  at android.app.ActivityThread.handleReceiver(ActivityThread.java:3032)
                                                                                                  at android.app.ActivityThread.-wrap18(ActivityThread.java)
                                                                                                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1557)
                                                                                                  at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                                  at android.os.Looper.loop(Looper.java:154)
                                                                                                  at android.app.ActivityThread.main(ActivityThread.java:6123)
                                                                                                  at java.lang.reflect.Method.invoke(Native Method)
                                                                                                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
                                                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
03-16 19:36:21.719 14841-14841/sample D/TEST: ONRECEIVE CALLED

0 个答案:

没有答案