hmmm wrote:
> Hello,
>  
> If I don't close() a cursor explicitly, relying on gc instead, may it,
> theoretically, cause any problems?

That depends.

If this is a managed cursor (see managedQuery() and
startManagingCursor() in Activity), then it will automatically be closed
for you.

Otherwise, it is conceivable that whatever provided your cursor may not
close its own stuff up appropriately. In practice, common cursors should
not suffer from any problems, but it is definitely good coding practice
to close them up.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to