是否可以以编程方式访问 X-Mms-Content-Location?
我在手机上发现了一个奇怪的问题,我正在尝试找到一种方法来解决该问题以了解更多信息。
是否可以使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是由数据库损坏引起的孤立事件。用户在应用程序上使用了任务杀手,从而损坏了手机存储彩信信息的数据库。
硬重置解决了这个问题。进行硬重置会重新创建文件系统和这个特定的数据库
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