Check out example codes for "how to reset autoincrement in sqlite java". It will help you in understanding the concepts better.
Code Example 1
db.delete("SQLITE_SEQUENCE","NAME = ?",new String[]{TABLE_NAME});
/*
when deleting or adding rows with AUTOINCREMENT used to reset counter
to biggest primary key in table Author Akhilesh Dhar Dubey
*/
Learn ReactJs, React Native from akashmittal.com