I have a method like this:
private void insertData() {
ContentValues cv = new ContentValues();
cv.put(name, "aName");
cv.put(lastName , "aLastName");
Uri returnedUri = getContentResolver().insert(CONTENT_URI, cv);
Log.e("number of row : " , returnedUri.toString());
}
I have 4 rows in my database and in the log message it will return .../persons/31 or a greater number each time. I expect that new inserted person should have id 5. I think every time I add a new person id increase by one but after deleting a person id won't automatically decrease by one.