gpt4 book ai didi

java - 在手机上单步执行 Android 代码 - 大行号差异

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:13:19 24 4
gpt4 key购买 nike

我正在尝试调试一些与 Samsung Captivate (Galaxy S) 上的 ListView 相关的代码。我在我的代码中的某个地方放置了断点,当它停止时,我在堆栈上返回到 ListView 源的几帧。

现在,我可以预料会有一些不匹配,因为我的手机的 Android 类版本可能与我在 IDE 中使用的源代码略有不同。但是,我得到超过 300 行的差异。我在模拟器上看不到这种差异。

此外,堆栈跟踪显示方法 performItemClick() 的 ListView 行号 3688,而 ListView 源代码只有 3644 行,这个方法出现在第 3395 行。我查看了不同版本的 Android 代码,没有一个有 performItemClick( ) 更接近第 3688 行。

我能想到的唯一解释是三星更改了 Android 代码这么多,但我不明白他们为什么要这样做。

我失踪还有其他原因吗?有什么方法可以强制调试器自动调整行,因为目前我无法单步执行此代码?

最佳答案

尝试不同的版本无济于事。三星修改了他们的框架代码,他们没有发布更改。我的 Samsung Charge 智能手机遇到了同样的问题。他们可能以同样的方式处理银河系。这是 Apache 许可证的不幸现实。

当我就此问题联系三星时,我得到了以下回复(略有修改):

FRG83 android-2.2.1_r1 is [the right version number for the Samsung Charge].

Also, ''ListView.java'' file does not match between file on the phone and google original, because we modified it.

ListView.java is covered under Apache license which has no obligation to publish source code.

Please understand that we only publish open source codes that are covered licenses which have obligation of publishing.(ex. GPL, LGPL, MPL...etc).

The reason for mentioning ''Get android open source'' is only for build our Open source code.

关于java - 在手机上单步执行 Android 代码 - 大行号差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6084538/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com