title: How to get auto increment number if database is empty?
body: <p>In the app I am building I have a auto increment row, so say i add 3 entries to the sql database in android it be 0,1,2 but say i delete the 3 entries from the database and then add another it will continue auto increment number from the last auto increment number that was put in the database, so if i delete all entries in the database how do i get the last auto increment number if there is Notting left in the database at the time?</p>
  
  <h2>Update</h2>
  
  <p>When trying to use "SELECT last_insert_rowid()" i get a load of rubbish:</p>
  
  <p>in database file i have:</p>
  
  <pre><code> public Cursor getmax(){
          return databaseConnect.rawQuery("SELECT last_insert_rowid()", null);
      }
  </code></pre>
  
  <p>and in the file im trying to get last row if back:</p>
  
  <pre><code>  Cursor reminder = databaseHelper.getmax();
   String title = reminder + "";
  </code></pre>
  
  <p>i need to covert to string like above but when i check it i get a load of rubbish back ?</p>