是否可以以编程方式访问 X-Mms-Content-Location?

发布于 2024-08-30 15:10:19 字数 1291 浏览 3 评论 0原文

我在手机上发现了一个奇怪的问题,我正在尝试找到一种方法来解决该问题以了解更多信息。

是否可以使用 Android SDK 以编程方式访问 MMS 消息中消息的 X-Mms-Content-Location 属性?

这是我正在调查的错误的一个示例。如果我可以访问该属性,那么我也许可以编写一个应用程序来修复它,以便消息检索成功。

04-26 19:11:35.573 V/RetrieveTransaction(  299): X-Mms-Content-Location: http://69.78.70..70/servlets/mms?message-id=<GUID_REMOVED_FOR_PRIVACY>
<snip>
04-26 19:11:35.783 I/InetAddress(  299): Unknown host 69.78.70..70, throwing UnknownHostException 
04-26 19:11:35.793 V/RetrieveTransaction(  299): Unexpected IOException. 
04-26 19:11:35.793 V/RetrieveTransaction(  299): java.io.IOException: Cannot establish route for http://69.78.70..70/servlets/mms?message-id=<GUID_REMOVED_FOR_PRIVACY>: Unknown host 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at com.android.mms.transaction.Transaction.ensureRouteToHost(Transaction.java:206) 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at com.android.mms.transaction.Transaction.getPdu(Transaction.java:171) 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at com.android.mms.transaction.RetrieveTransaction.run(RetrieveTransaction.java:147) 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at java.lang.Thread.run(Thread.java:1058) 
04-26 19:11:35.793 E/RetrieveTransaction(  299): Retrieval failed. 

I'm seeing a strange issue on a phone and I'm trying to come up with a way to troubleshoot it to find out more.

Is it possible to access the X-Mms-Content-Location attribute of a message from a MMS message programatically, using the Android SDK?

This is one example of the error that I am investigating. If I can access that attribute, then I may be able to code an app which repairs it so the message retrieval succeeds.

04-26 19:11:35.573 V/RetrieveTransaction(  299): X-Mms-Content-Location: http://69.78.70..70/servlets/mms?message-id=<GUID_REMOVED_FOR_PRIVACY>
<snip>
04-26 19:11:35.783 I/InetAddress(  299): Unknown host 69.78.70..70, throwing UnknownHostException 
04-26 19:11:35.793 V/RetrieveTransaction(  299): Unexpected IOException. 
04-26 19:11:35.793 V/RetrieveTransaction(  299): java.io.IOException: Cannot establish route for http://69.78.70..70/servlets/mms?message-id=<GUID_REMOVED_FOR_PRIVACY>: Unknown host 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at com.android.mms.transaction.Transaction.ensureRouteToHost(Transaction.java:206) 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at com.android.mms.transaction.Transaction.getPdu(Transaction.java:171) 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at com.android.mms.transaction.RetrieveTransaction.run(RetrieveTransaction.java:147) 
04-26 19:11:35.793 V/RetrieveTransaction(  299):  at java.lang.Thread.run(Thread.java:1058) 
04-26 19:11:35.793 E/RetrieveTransaction(  299): Retrieval failed. 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三生殊途 2024-09-06 15:10:19

这是由数据库损坏引起的孤立事件。用户在应用程序上使用了任务杀手,从而损坏了手机存储彩信信息的数据库。

硬重置解决了这个问题。进行硬重置会重新创建文件系统和这个特定的数据库

This was an isolated incident caused by database corruption. The user had used a task-killer on the app and in doing so corrupted the phone's database which stores the MMS information.

A Hard reset took care of the problem. Doing a hard-reset re-creates the filesystem and this particular database

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文