Search in sources :

Example 1 with ESM_Date

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();
    }
}
Also used : ESMFactory(com.aware.ui.esms.ESMFactory) ESM_Date(com.aware.ui.esms.ESM_Date) JSONException(org.json.JSONException)

Aggregations

ESMFactory (com.aware.ui.esms.ESMFactory)1 ESM_Date (com.aware.ui.esms.ESM_Date)1 JSONException (org.json.JSONException)1