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();
}
}
Aggregations