Javascript android.database.CursorWindowAllocationException:2048 kb的光标窗口分配失败。。。。。。Tianium应用程序中的运行时错误
我使用一个大的可扩展列表视图,有时有超过500个组。android在内部为每个组打开了一个游标。这导致以下例外情况:Javascript android.database.CursorWindowAllocationException:2048 kb的光标窗口分配失败。。。。。。Tianium应用程序中的运行时错误,javascript,android,cursor,titanium,expandablelistview,Javascript,Android,Cursor,Titanium,Expandablelistview,我使用一个大的可扩展列表视图,有时有超过500个组。android在内部为每个组打开了一个游标。这导致以下例外情况: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=741 (# cursors opened by this proc=741) run time error in titanium app 有没有办法避免这次坠
android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=741 (# cursors opened by this proc=741) run time error in titanium app
有没有办法避免这次坠机?我唯一的想法是构建一个行为类似于可扩展列表的自定义列表。我不喜欢这种方法,因为它需要付出很大的努力。有什么想法吗
谢谢并致以最良好的问候
FL不要打开那么多光标,尝试只打开一个光标,但保留指向构成组项目和子项目的位置的指针。当组展开时,光标适配器会自动打开光标。我希望所有小组最初都能扩大。因此,所有游标都将自动打开,并调用游标TreeAdapter。无论如何,这都会导致异常。