Saturday, February 25, 2012

[android-developers] Query on LoaderManager/CursorLoader behaviour

Hi,
      I have a query with respect to list fragment which uses loader manager callbacks and cursor loader.

When onLoadFinished is called with cursor,  and if i pass this cursor to some background service which uses the information in cursor. 

While the background service is running and if i destroy the loader, so will the cursor also be destroyed with it ?

I have to destroy the loader because there may be many queries like that to database and i can not launch new loaders for each query?

Also please let me know if there is a way to make a copy of cursor ??? something like cloning.


Thanks... 

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate