title: How to update an entry for which I have a cursor in android?
body: <p>I have the following query which returns a single element (at most):</p>
  
  <pre><code>Cursor cursor = db.query(
              DATABASE_TABLE_SERIES,
              new String[]{KEY_PRICE},
              KEY_BOOK + " = ?",
              new String[]{String.valueOf(bookId)},
              null,
              null,
              KEY_DATE+" ASC",
              "1"
      );
  </code></pre>
  
  <p>I might need to update this particular single entry in the database. Here is what I try: </p>
  
  <pre><code>ContentValues changedValues = new ContentValues();
  changedValues.put(KEY_PRICE, changedPrice);
  db.update(
      DATABASE_TABLE_SERIES, 
      changedValues, 
      "KEY_BOOK = ? ORDERBY "+ KEYDATE +" ASC LIMIT 1",
      new String[]{String.valueOf(bookId)}
  );
  </code></pre>
  
  <p>which does not work (as I expected). </p>
  
  <p>How can I update the exact entry that I query with the query result? I strongly would prefer some example code, as I probably will not understand an explanation in text-form (I am an android-beginner)!</p>