How can I tell my database to automatically delete the entry with the lowest ID when a new row is created? I want this to be done when there are more than ten rows in the table.
Here is my createEntry method:
public long createEntry(String latitude, String longitude) {
// TODO Auto-generated method stub
ContentValues cv = new ContentValues();
cv.put(KEY_LATITUDE, latitude);
cv.put(KEY_LONGITUDE, longitude);
return myDatabase.insert(DATABASE_TABLE, null, cv);
}