jeudi 5 février 2015

Android sqlite: getting records from a table from one date to another

I have the following SQLite table . I know the SQLite query but I'm confused in its programatically implementation. I have two date picker buttons. starting date and ending date. and a button to show records What should I do with the show record button? My SQLite table is



public static final String TABLE_METER = "meter";
public static final String COLUMN_METER_ID = "_id";
public static final String COLUMN_METER_DATE = "meter_date";
public static final String COLUMN_METER_START = "meter_start";
public static final String COLUMN_METER_END = "meter_end";


How would I connect the datepicker button to the SQLite query? and show records from one date to another ?


Aucun commentaire:

Enregistrer un commentaire