[android-developers] Re: IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

2009-03-07 Thread Marco Nelissen
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

[android-developers] Re: IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

2009-03-07 Thread Jeffrey Yasskin
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