Home
last modified time | relevance | path

Searched refs:JsonUtils (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DJsonUtils.java27 final class JsonUtils { class
34 private JsonUtils() { in JsonUtils() method in JsonUtils
DMainActivity.java228 String question = questionObject.getString(JsonUtils.JSON_FIELD_QUESTION); in fromJson()
229 JSONArray answersJsonArray = questionObject.getJSONArray(JsonUtils.JSON_FIELD_ANSWERS); in fromJson()
230 String[] answers = new String[JsonUtils.NUM_ANSWER_CHOICES]; in fromJson()
234 int correctIndex = questionObject.getInt(JsonUtils.JSON_FIELD_CORRECT_INDEX); in fromJson()
260 JSONObject jsonObject = JsonUtils.loadJsonFile(this, QUIZ_JSON_FILE); in readQuizFromFile()
261 JSONArray jsonArray = jsonObject.getJSONArray(JsonUtils.JSON_FIELD_QUESTIONS); in readQuizFromFile()