How to use the LIMIT argument in an SQLite Query with Android

Solution 1:

Order by id DESC Limit 1:

db.query("table", null, "column=?", new String[]{"value"}, null, null, "id DESC", "1");