I'm doing this by example, this is my first attempt with SQLite
String name = etNewName.getText().toString();
String address = etNewAdress.getText().toString();
ContentValues cv = new ContentValues();
cv.put("name", name);
cv.put("address", address);
long rowID = db.insert("Org", null, cv);
Log.d("MyLog", "row inserted, ID = " + rowID);
updateDB();
adapter.notifyDataSetChanged();
So in log, I got ID=1510 for example, but of course, when I do
int idColIndex = c.getColumnIndex("id");
int id = c.getInt(idColIndex);
Log.d("MyLog"," get id="+id);
it returns 0, it doesn't return me that row ID I got when inserted data, although the initial DB I'm using from a file got it's IDs in 'id' field.
How do I record that index into 'id' field?