You need to include the
AND
within the selection criteria (the
AND
is SQLite not part of the Cursor construction).
Try the following instead
(helper.TX_ID + "='" + name + "' AND " + helper.TX_DATE + "='" + td + "'"),
You may also find the following article of interest
A Simple Android SQLite Example[
^]