Android 调用 AbsListView unregisterIRListener()
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21742662/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
AbsListView unregisterIRListener() is called
提问by zklim
I'm doing some debugging on an app that I'm working on, and in my LogCat, I continue to get a message with tag "AbsListView" and message "unregisterIRListner() is called." Is there something I'm NOT doing within my code that would cause this? Is it even something that I need to worry about? I'd rather not post the (over) 550 lines of code I have for this. Any information would be useful. Thanks.
我正在对我正在开发的应用程序进行一些调试,在我的 LogCat 中,我继续收到带有标签“AbsListView”和消息“unregisterIRListner() 被调用”的消息。有什么我没有在我的代码中做的事情会导致这种情况吗?它甚至是我需要担心的事情吗?我宁愿不发布我为此拥有的(超过)550 行代码。任何信息都会有用。谢谢。
采纳答案by Vitaliy A
Looks like Google developers left debug call uncommented in source code. To avoid this unusable LogCat output I'm using following filter:
看起来谷歌开发人员在源代码中没有注释调试调用。为了避免这种不可用的 LogCat 输出,我使用了以下过滤器:
tag:^(?!(dalvikvm|AbsListView))
This filter cut out all taged: dalvikvm and AbsListView debug lines.
此过滤器删除了所有标记的:dalvikvm 和 AbsListView 调试行。
回答by Vitaliy A
I found such messages in my LogCat too. And found this answers - very usefull.
我也在我的 LogCat 中发现了这样的消息。并找到了这个答案 - 非常有用。
I investigated a little bit based on the information above. It seems to be related to some Samsung devices respectively Samsung Android versions. I have a Samsung Note 10.1 edition 2014 with orig OS - here it happens. And I have a Samsung S2 with CM 10.2 - here I don't see the LogCat entries.
我根据上面的信息进行了一些调查。它似乎与一些三星设备有关,分别是三星 Android 版本。我有一个带有 orig OS 的三星 Note 10.1 版 2014 - 它发生了。我有一个带有 CM 10.2 的三星 S2 - 在这里我没有看到 LogCat 条目。
But on both devices my app works fine.
但是在两台设备上我的应用程序都运行良好。
回答by mihau
in Android Studio to disable AbsListView unregisterIRListener() from Logcat You need to set new filter: check screen: Android Studio disable AbsListView unregisterIRListener()
在 Android Studio 中从 Logcat 禁用 AbsListView unregisterIRListener() 您需要设置新过滤器:检查屏幕:Android Studio disable AbsListView unregisterIRListener()
Just add in LogTag field: ^(?!(dalvikvm|AbsListView))
只需在 LogTag 字段中添加:^(?!(dalvikvm|AbsListView))