IndexOutOfBoundsException when I call stopManagingCursor in an OnItemSelectedListener

by Marco Nelissen » Sun, 08 Mar 2009 10:05:04 GMT

Sponsored Links
 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
Can you please file a bug at  ?


Other Threads

1. Debugging in Android Open Source


I am a platform developer and want to know how I can debug through the
Android System code. I am making changes to the WindowManagerService
and see a lot of statements like:
(DEBUG_FOCUS) Log.v(TAG, "Clearing focused app, was " + mFocusedApp);

My question is, how do I take advantage of these logs? I am using
Eclipse on Ubuntu 9.10 and I have no idea how to actually debug this
code. Could use some help.



2. Loading a layout from XML inside of a derived class

Right now I have a class that extends LinearLayout and builds the view
inside of the constructor using a series of addViews.

I wanted to move this into an XML file, so I have the same view
defined there.  My problem is that I can't figure out how to load the
XML file in the constructor of the derived class.  I looked up the
LayoutInflater stuff, but I wasn't entirely sure how to use it in that
context.  Do I need to call addView() with the result of the

Is this even possible?

The other issue is that the context object that is passed in doesn't
have the LayoutInflater methods... I'm not sure if I need an instance
of Activity to do that.

I hope this is clear.. thanks!


3. How to determine if Activity is on screen

4. AccountManager.getAuthToken() problem with more than one app

5. Activity lifecycle problem on Nexus One - onStop not called

6. How often do you read feedback on your own apps?

7. Sedang mengunduh aplikasi buat si Robot Ijo