Searched refs:Question (Results 1 – 1 of 1) sorted by relevance
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/ |
D | MainActivity.java | 103 private PriorityQueue<Question> mFutureQuestions; 133 mFutureQuestions = new PriorityQueue<Question>(10); in onCreate() 212 private static class Question implements Comparable<Question> { class in MainActivity 218 public Question(String question, int questionIndex, String[] answers, in Question() method in MainActivity.Question 226 public static Question fromJson(JSONObject questionObject, int questionIndex) in fromJson() 235 return new Question(question, questionIndex, answers, correctIndex); in fromJson() 239 public int compareTo(Question that) { in compareTo() 264 Question question = Question.fromJson(questionObject, mQuestionIndex++); in readQuizFromFile() 283 addQuestionDataItem(new Question(question, mQuestionIndex++, answers, correctAnswerIndex)); in addQuestion() 298 private void addQuestionDataItem(Question question) { in addQuestionDataItem() [all …]
|