使用动画 gif 和电影时 Activity 崩溃 (Android)
我的代码现在从网站下载动画 gif,因为据我所知,webview 和 imageview 不支持动画 gif,并使用 BufferedInputStream 和 Movie.decodeStream 以及自定义视图来渲染它(此代码运行在一个单独的线程) 我已经在 Android 模拟器(1.6、2.1、2.2、2.3.3)、Xperia X8(2.1)、ViewSonic viewpad(2.2)和 Galaxy S(2.3.3)上测试了代码,并且该活动仅在 Galaxy S 上崩溃(在像 1 之后)分钟)。在其他设备上它工作得很好。 我尝试在 Galaxy S 上调试应用程序,在崩溃之前收到此消息:
11-17 13:37:18.152: ERROR/(1161): Wink AGIF pDecInfo is Null or not avail
这就是调试时得到的所有信息:(
我尝试来回更改我的代码,但无法使其正常工作。任何人都遇到过知道出了什么问题吗?
My code right now downloads an animated gif from a website, and since, as far as I know, webview and imageview doesn't support animated gifs and using BufferedInputStream and Movie.decodeStream along with a custom View to render it (this code runs in a seperate thread)
I have tested the code on the android emulator (1.6, 2.1, 2.2, 2.3.3), Xperia X8 with 2.1, ViewSonic viewpad with 2.2 and Galaxy S with 2.3.3 and the activity only crashes on the Galaxy S (after like 1 minute). On the other devices it's working just fine.
I've tried debugging the app on the Galaxy S and I get this message just before it crashes:
11-17 13:37:18.152: ERROR/(1161): Wink AGIF pDecInfo is Null or not avail
That's all I get when debugging :(
I've tried changing my code back and forth but I can't get it working. Anyone have any idea what's wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们的三星设备也存在一些问题。我被告知三星对原始 Android 源代码进行了大量修改,因此他们似乎引入了许多错误。
We also have some problems with Samsung devices. I was told that Samsung heavily modifies original Android source code so they seem to introduce many bugs.