There is no need to call deactivate() on a cursor unless you want to requery it at a later stage.
close() will release all its resources, which is what is needed. It is also a good idea to put this into a try/finally block to make sure the close happens in the presence of exceptions. Ludwig 2008/9/23 Sudha <[EMAIL PROTECTED]> > > try giving > cursor.deactivate(); > cursor.close(); > for me it worked > cursor = null; > > > On Sep 23, 3:09 pm, Wesley Sagittarius <[EMAIL PROTECTED]> wrote: > > hi, > > > > how to finalizing sqllite cursor??? > > > > 09-23 10:06:08.646: INFO/dalvikvm(1662): Uncaught exception thrown by > > finalizer (will be discarded): > > 09-23 10:06:08.646: INFO/dalvikvm(1662): Ljava/lang/ > > IllegalStateException;: Finalizing cursor > > [EMAIL PROTECTED] on notes that has not > > been deactivated or closed > > 09-23 10:06:08.646: INFO/dalvikvm(1662): at > > android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:440) > > 09-23 10:06:08.646: INFO/dalvikvm(1662): at > > dalvik.system.NativeStart.run(Native Method) > > > > any one have any idea??? > > > > Wesley. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---