That's a reasonable idea, thanks. Right now, I'm calling changeCursor
(null) for each of my adapters in onDestroy(), but if I run into
trouble with leaking cursors before I can set them into an adapter
I'll try removing the listeners.
Filed at http://code.google.com/p/android/issues/detail?id=217
One possible workaround that comes to mind is to remove your listener
in your activity's onPause or onStop, so that it won't fire anymore
when the activity is shutting down. Though having to add extra code to
make managed cursors work for you kind of defeats the purpose, I
suppose.
Can you please
2 matches
Mail list logo