在标签布局投掷地图视图,java.lang.IllegalStateException:活页夹已经敲定,未捕获的异常引发的终结 [英] Map view in tab layout throwing , java.lang.IllegalStateException: Binder has been finalized ,Uncaught exception thrown by finalizer
问题描述
我创建具有标签布局的应用程序,在我打开它使用Web视图一个新的活动选项卡中点击。 另外,其他的选项卡使用地图视图,列表视图,图像视图。
I have created an application which has a tab layout , on clicking on of the tab i open a new activity which uses web view. Also the other tab uses map view ,list view , image view.
现在我安装我的应用程序的三星GalaxyŸ - 这是运行良好。 当我安装在三星Galaxy相同的应用程序选项卡2,当我第一次打开地图视图,然后Web视图和横向之间我碰到下面的错误。
now I installed my application on Samsung Galaxy Y - it was running fine. When I installed the same app on Samsung Galaxy Tab 2 , and when i first open the map view and then the web view and traverse between them i get the following error.
08-09 13:00:25.527: E/System(2822): Uncaught exception thrown by finalizer
08-09 13:00:25.527: E/System(2822): java.lang.IllegalStateException: Binder has been finalized!
08-09 13:00:25.527: E/System(2822): at android.os.BinderProxy.transact(Native Method)
08-09 13:00:25.527: E/System(2822): at android.database.BulkCursorProxy.close(BulkCursorNative.java:288)
08-09 13:00:25.527: E/System(2822): at android.database.BulkCursorToCursorAdaptor.close(BulkCursorToCursorAdaptor.java:133)
08-09 13:00:25.527: E/System(2822): at android.database.CursorWrapper.close(CursorWrapper.java:49)
08-09 13:00:25.527: E/System(2822): at android.content.ContentResolver$CursorWrapperInner.close(ContentResolver.java:1591)
08-09 13:00:25.527: E/System(2822): at android.content.ContentResolver$CursorWrapperInner.finalize(ContentResolver.java:1604)
08-09 13:00:25.527: E/System(2822): at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:182)
08-09 13:00:25.527: E/System(2822): at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168)
08-09 13:00:25.527: E/System(2822): at java.lang.Thread.run(Thread.java:856)
任何想法什么可能导致这个问题。
Any thoughts what might be causing this problem.
感谢和问候
阿迪亚普拉塔普·辛格
推荐答案
我在部署我的应用程序在一个全新的Galaxy Tab 2遇到了同样的错误。
就我而言,我只是开个 MapActivity
是画一些自定义的重叠
和 ItemOverlay
键,它会抛出这个错误。
I encountered the same error while deploying my application on a brand new Galaxy Tab 2.
In my case i just open a MapActivity
that draw some custom Overlay
and ItemOverlay
and it throws that error.
我注意到,地图缩放级别设置很远,所以我因子评分是这个问题:我暂时被禁止,我的活动,并在地图上的所有绘制的东西表现出正确的,然后我放大和退出这一活动,我重新启用我的画的东西,这个时候它工作正常(当我打开活动设置好的缩放级别是最后一次我用,当我关闭了空映射活动)
I noticed that the map zoom level is set far away so i tought it was the problem: i temporary disabled all drawing stuff of my activity and the map showed correctly, then i zoomed in and exited that activity, i re-enabled my drawing stuff and this time it works correctly (when i opened the activity the zoom level setted was the last i used when i closed the empty map activity)
不知道,如果它可以帮助你,我想这已经是与在启动时不正确地图缩放级别,所以也许设置自定义缩放级别可以解决这个问题。
don't know if it may help you, i suppose it has something to do with incorrect map zoom level at startup so maybe setting a custom zoom level could solve the problem.
这篇关于在标签布局投掷地图视图,java.lang.IllegalStateException:活页夹已经敲定,未捕获的异常引发的终结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!