Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>startManagingCursor()</code>-method is deprecated. You should use the <a href="http://developer.android.com/guide/topics/fundamentals/loaders.html" rel="nofollow noreferrer">Loader API</a> instead. If you're targeting devices with an API-Level lower then 11, you'll want to use the <a href="http://developer.android.com/sdk/compatibility-library.html" rel="nofollow noreferrer">compatibility library</a>.</p> <p>Since it seams that you simply want to load some data from your SQLiteDatabase, you don't need to create a <code>ContentProvider</code> but can extend <code>Loader</code>. An example and more information on this can be found here: <a href="https://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider">CursorLoader usage without ContentProvider</a></p> <p>Also, if your Activity only shows a <code>ListView</code>, you might want to switch to a <a href="http://developer.android.com/reference/android/app/ListActivity.html" rel="nofollow noreferrer"><code>ListActivity</code></a>, since it makes binding data and getting ID's (for example) easier for you.</p> <hr> <p>Since you posted your LogCat:</p> <p>The problem is, that the <code>SimpleCursorAdapter</code>-class needs a column named <code>_id</code> to get an ID on every row of data from your Database. More information on that problem can be found here: <a href="https://stackoverflow.com/questions/3359414/android-column-id-does-not-exist">Android column &#39;_id&#39; does not exist?</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload