use of com.aware.ui.esms.ESM_Date in project aware-client by denzilferreira.
the class TestESM method testESMDate.
private void testESMDate(Context context) {
try {
ESMFactory factory = new ESMFactory();
ESM_Date date = new ESM_Date();
date.setTitle("ESM: Date");
date.setInstructions("On which day did this occur?");
date.setSubmitButton("OK");
// don't use calendar view, use date picker
date.setCalendar(false);
factory.addESM(date);
ESM.queueESM(context, factory.build());
} catch (JSONException e) {
e.printStackTrace();
}
}
Aggregations