onOffsetChanged 不会在 HTC Sensation 上触发
我正在 Android 上开发动态壁纸,最近购买了 HTC Sensation (android 2.3.3) 进行开发。我发现这款手机的问题是根本没有生成 onOffsetChanged
事件。我在 onOffsetChanged
方法中记录了呼叫,但手机上没有记录任何内容,而它在模拟器上正常工作。
我的猜测是 HTC Sense 3.0 搞砸了(从市场下载的壁纸也不起作用),但另一方面,手机附带了 HTC Stream 动态壁纸,它似乎有这样的功能。
有谁知道是否需要将某些特殊内容添加到清单或代码中才能在 HTC Sensation 上启用此功能?有人遇到同样的问题吗?我很困惑,因为即使谷歌似乎也不知道这个问题:)。
感谢您的帮助。
I'm developing live wallpaper on Android and recently bought a HTC Sensation (android 2.3.3) for development. The problem that I found with this phone is that onOffsetChanged
event is not generated at all. I logged calls inside onOffsetChanged
method and there is nothing logged on phone, while it works correctly on emulator.
My guess is that HTC Sense 3.0 messed something up (wallpapers downloaded from market doesn't work either) but on the other hand there is HTC Stream live wallpaper delivered with the phone and it seems to have such functionality.
Does anyone know if there is something special that has to be added to manifest or code that enables this functionality on HTC Sensation? Did anyone faced same problem? I'm quite confused since even google doesn't seem to know about such issue :).
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论