title: How can I get last ID after inserting record?
body: <p>Given the following code:</p>
  
  <pre><code> sqLiteDatabase.execSQL("create table if not exists ACCOUNT (ID integer primary key autoincrement," +
                          "CASH LONG NOT NULL," +
                          "BANKID INTEGER NOT NULL," +
                          "ACCOUNTNO TEXT ," +
                          "DATE TEXT NOT NULL," +
                          "COMMENT TEXT);");
  </code></pre>
  
  <p>A table is created in SQLite.</p>
  
  <p>How can I get a lastID after adding a record?</p>
  
  <p>With the following code:</p>
  
  <pre><code> contentValues.put("CASH", accountTO.getCash());
   contentValues.put("DATA", DatePro.currentDate());
   contentValues.put("BANKID", accountTO.getBankID());
   contentValues.put("ACCOUNTNO", accountTO.getAccountNo());
   contentValues.put("COMMENT", accountTO.getComment());
  
   Long i = sqLiteDatabase.insert("ACCOUNT", null, contentValues);
  </code></pre>
  
  <p>I get <code>-1</code>.</p>