Вы находитесь на странице: 1из 16

Lab Android Part 4

Multiple Choice
Question
This question
is only for
display, will
not be
executed
Idea: To have 2 Java File and 1 XML
file
The 2 Java files for:
1. Question Bank, Options and Correct Answer
2. Main Activity: to control the flow of questions and set the score.

The XML file is to design the layout


Create new class
for the questions
bank
Create function to get the
question bank, based on the
array index (a).
Main Activity
UpdateQuestion
Get the first set of
to get the set of questions,
question
options and correct answer

Get the next set of


question
Get the next set of
question
If user press a quit button, system will exit.
Tutorial
• Add another 2 questions of your own and show to your lecturer.

Вам также может понравиться