查询呼叫日志时,三星的设备返回短信 [英] Samsung device returns text messages when querying for call-log

查看:170
本文介绍了查询呼叫日志时,三星的设备返回短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一些用户报告说他们的三星设备(GT-N7000和放大器; SGH-I777)查询我让我的应用程序的的 CallLog.Calls 显示器还短信。

Some of my users report that on their Samsung devices (GT-N7000 & SGH-I777) a query I make in my app for the CallLog.Calls displays also text messages.

我创建转储的 CallLog 的ContentProvider ,它似乎已经没有提及额外的字段Android的API,而不是我们的任何试验装置返回。

I've created a dump of their CallLog ContentProvider, and it seems to have extra fields not mentioned in the Android API, and not returned on any of our test devices.

具体而言,翻翻转储,有一个名为 LOGTYPE 字段,这似乎等于100电话,和300条短信。 有了这个字段网上搜索,我没有找到该字段的值的任何官方文件,但我碰到很多这个领域的其他可能的值主要是通过碰撞堆栈跟踪,其中由显示下划线查询 ContentProvider的

Specifically, looking through the dump, there's a field called logtype, which seems to equal 100 for calls, and 300 for text messages. Having searching online for this field, I didn't find any official documentation for this field's values, but I came across lots of other possible values for this field mainly via crash stack traces, which reveal underlining queries by the ContentProvider:

LOGTYPE = 300 OR LOGTYPE = 200

logtype=300 OR logtype=200

LOGTYPE = 100 OR LOGTYPE = 500 OR LOGTYPE = 800 OR LOGTYPE = 900 OR   LOGTYPE = 1000

logtype=100 OR logtype=500 OR logtype=800 OR logtype=900 OR logtype=1000

所以,我认为300/200用于短信,而100/500/800/900/1000用于电话,但我不知道,因为我还没有看到800分之500/ 900 / 1000使用的报告用户的设备。

So I assume that 300/200 are used for text messages, and 100/500/800/900/1000 are used for calls, but I'm not sure, since I haven't seen 500/800/900/1000 being used on the reporting users' devices.

有人可以提供一些线索为LOGTYPE的可能值,以及它们的含义?

Can someone shed some light for the possible values of logtype, and their meaning?

推荐答案

我已经成功通过查询来暂时解决这个问题 CallLog.Calls 的列 LOGTYPE ,如果有异常被抛出,我查询正常,否则,我有选择的查询(LOGTYPE = 100 OR LOGTYPE = 500)

I've managed to tentatively solve it by querying CallLog.Calls for the column logtype, if an exception is thrown, I query normally, otherwise, I query with selection of (logtype=100 OR logtype=500)

这似乎是工作为我的报告的用户,但我仍然不知道这是否涵盖所有基地,因为有对 LOGTYPE 许多可能的值,我不知道的含义。

This seems to be working for my reporting users, but I'm still not sure if it covers all bases, since there are many possible values for logtype for which I don't know the meaning.

如果任何人有一个更好的答案,请添加它。

If anyone has a better answer, please add it.

这篇关于查询呼叫日志时,三星的设备返回短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆