Search in sources :

Example 1 with ESM_Web

use of com.aware.ui.esms.ESM_Web in project aware-client by denzilferreira.

the class TestESM method testESMWeb.

private void testESMWeb(Context context) {
    try {
        ESMFactory factory = new ESMFactory();
        ESM_Web web = new ESM_Web();
        web.setURL("https://www.google.com");
        web.setTitle("Web survey");
        web.setInstructions("Fill out this survey. Press OK when finished");
        web.setSubmitButton("OK");
        factory.addESM(web);
        ESM.queueESM(context, factory.build());
    } catch (JSONException e) {
        e.printStackTrace();
    }
}
Also used : ESMFactory(com.aware.ui.esms.ESMFactory) JSONException(org.json.JSONException) ESM_Web(com.aware.ui.esms.ESM_Web)

Aggregations

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