From f11c088fa13e225afd164c21f7ed40f622259f59 Mon Sep 17 00:00:00 2001 From: chrqls Date: Fri, 22 Nov 2013 21:51:52 +0100 Subject: [PATCH] [#4] Bye bye local files, now prepared questions will have to be uploaded through smile-iqmanager before getting it on the teacher app --- .../use_prepared_questions_dialog.xml | 105 +++--- .../use_prepared_questions_item.xml | 20 ++ res/values/strings.xml | 2 +- .../org/smilec/smile/bu/QuestionsManager.java | 331 +++++++++--------- .../smile/bu/SmilePlugServerManager.java | 88 ++++- .../smilec/smile/bu/json/IQSetJSONParser.java | 105 ++++++ .../java/org/smilec/smile/domain/IQSet.java | 58 +++ .../smile/ui/SessionValuesActivity.java | 3 - .../ui/UsePreparedQuestionsActivity.java | 63 +++- .../ui/adapter/FilesQuestionListAdapter.java | 51 +-- .../smile/ui/adapter/IQSetListAdapter.java | 53 +++ .../org/smilec/smile/util/SmilePlugUtil.java | 4 +- 12 files changed, 615 insertions(+), 268 deletions(-) create mode 100644 src/main/java/org/smilec/smile/bu/json/IQSetJSONParser.java create mode 100644 src/main/java/org/smilec/smile/domain/IQSet.java create mode 100644 src/main/java/org/smilec/smile/ui/adapter/IQSetListAdapter.java diff --git a/res/layout-large-land/use_prepared_questions_dialog.xml b/res/layout-large-land/use_prepared_questions_dialog.xml index b9af050..5bd5170 100644 --- a/res/layout-large-land/use_prepared_questions_dialog.xml +++ b/res/layout-large-land/use_prepared_questions_dialog.xml @@ -29,10 +29,11 @@ -