Hi im strugeling with SQLite in android.
Im trying to delete old posts from the db by doing this
this.db.delete(
EVENT_TABLE_NAME,
"date < ?",
new String[] {String.valueOf(limit.getTime())}
);
Where limit is the current date taken from the Calendar instances and deducted 216000000 milliseconds.
But this seems to remove all posts.
try this