The insert method returns the id of row just inserted or -1 if there was an error during insertion.
long id = db.insert(...);
where db is SQLiteDatabase.
The insert method returns the id of row just inserted or -1 if there was an error during insertion.
long id = db.insert(...);
where db is SQLiteDatabase.