How to Handle in code IllegalStateException on Cursor?
android
Solution
Use managedQuery() function to query the data. If you use managedQuery() instead of query() then Activity will keep the reference of the Cursor and automatically close it when it is not used.
Problem
When I was debugging my application suddenly this error popup. How can I handle this kind of error? I don't know where and how is caused. ``` Daemon System Thread [<5> HeapWorker] (Suspended (exception IllegalStateException)) SQLiteCursor.finalize() line: 603 NativeStart.run() line: not available [native method] ```