title: "SELECT last_insert_rowid()" returns always "0"
body: <p>I have a problem with "last_insert_rowid()".</p>
  
  <p>In my DB-Helper-Class I am doing the following:</p>
  
  <pre><code>public int getLastID() {
      final String MY_QUERY = "SELECT last_insert_rowid() FROM "+ DATABASE_TABLE5;
      Cursor cur = mDb.rawQuery(MY_QUERY, null);
      cur.moveToFirst();
      int ID = cur.getInt(0);
      cur.close();
      return ID;
  }
  </code></pre>
  
  <p>But when I call this in my intent:</p>
  
  <pre><code>int ID = mDbHelper.getLastID(); 
  Toast.makeText(this, "LastID: " + ID, Toast.LENGTH_SHORT).show();
  </code></pre>
  
  <p>I get always "0" back. That can not be, cause I have a lot of entries in my DB and the autoincrement value should be much higher.</p>
  
  <p>What I am doing wrong?</p>