1 通过log发现这一块有问题
03-16 15:57:36.549 E/Mms ( 929): com.google.android.mms.MmsException: Bad URI: content://com.android.externalstorage.documents/document/primary%3A20180316153702.vcf03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.model.VcardModel.initModelFromUri(VcardModel.java:100)03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.model.VcardModel.(VcardModel.java:58)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.ui.SlideshowEditor.changeVcard(SlideshowEditor.java:221)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.data.WorkingMessage.internalChangeMedia(WorkingMessage.java:683)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.data.WorkingMessage.changeMedia(WorkingMessage.java:610)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.data.WorkingMessage.setAttachment(WorkingMessage.java:479)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.ui.ComposeMessageActivity.addVcard(ComposeMessageActivity.java:4456)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.ui.ComposeMessageActivity.addAttachment(ComposeMessageActivity.java:4677)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.ui.ComposeMessageActivity.-wrap19(Unknown Source:0)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.ui.ComposeMessageActivity$63.run(ComposeMessageActivity.java:4521)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.ui.AsyncDialog$ModalDialogAsyncTask.doInBackground(AsyncDialog.java:132)
03-16 15:57:36.549 E/Mms ( 929): at com.android.mms.ui.AsyncDialog$ModalDialogAsyncTask.doInBackground(AsyncDialog.java:124)
03-16 15:57:36.549 E/Mms ( 929): at android.os.AsyncTask$2.call(AsyncTask.java:333)
03-16 15:57:36.549 E/Mms ( 929): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
03-16 15:57:36.549 E/Mms ( 929): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
03-16 15:57:36.549 E/Mms ( 929): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
03-16 15:57:36.549 E/Mms ( 929): at java.lang.Thread.run(Thread.java:764)
03-16 15:57:36.552 D/Mms ( 929): CarrierContentRestriction.checkMessageSize messageSize: 0 increaseSize: 0 MmsConfig.getMaxMessageSize: 307200
03-16 15:57:36.552 D/Mms ( 929): handleAddAttachmentErr
2 找到文件
3 修改
结合log 发现解析了路径有问题,故添加新的路径
网友评论