The error message reads as follows:
An error has occurred in com.android.mp3player.
Unable to start activity
ComponentInfo{com.android.mp3player/
com.android.mp3player.BrowseCategory}:
java.lang.IlleaglStateException: Unable to get field slot.

This error only occurs when I return A cursor from the querry without
_id in it.  The documentation for CursorAdapter says it needs _id to
work properly.  If I understand this correctly it probably needs the
primary key so it can commit changes to the Cursor back to the
database.  However, I don't understand why they force the name to be
_id.  I guess that is the root of my question.  If I am not
understanding this correctly I would appreciate any insight.  Thanks.


On Jul 1, 9:49 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
> tmoriarty wrote:
> > I found that I had to include _id in the Cursor or it would
> > error out once the Cursor was used in a CursorAdapter.
>
> Could you provide us with the text of the error message? That might help
> us shed some light on the situation.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Warescription: All titles, revisions, & ebook formats, just $35/year
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to