Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,275 Members 43,053 Now Online
XDA Developers Android and Mobile Development Forum

Android Examination App

Tip us?
 
clonedaccnt
Old
#1  
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Jun 2014
Default Android Examination App

I'm going to fetch the questions and answers from my web server using JSON, this data are dynamic, sometimes a question has two or three answers, question type can be any combination of the following: multiple choice, true or false, identification, fill in the blanks etc.

The answer on how to do a dynamic layout on android is to let java takeover on adding layout and components instead of XML. (is this correct?)

How can I make my app to have one activity/view per question? Is this memory intensive? For example the data from the web server contains a hundred questions.

I want the user to have access to previous questions. For example I'm currently on question number 21 and I want to go back to question number 11 for some reasons, is this possible? How can I do this? (All questions are randomized)
 
SimplicityApks
Old
#2  
SimplicityApks's Avatar
Senior Member
Thanks Meter 327
Posts: 323
Join Date: May 2013
Location: Aachen
Quote:
Originally Posted by clonedaccnt View Post
I'm going to fetch the questions and answers from my web server using JSON, this data are dynamic, sometimes a question has two or three answers, question type can be any combination of the following: multiple choice, true or false, identification, fill in the blanks etc.

The answer on how to do a dynamic layout on android is to let java takeover on adding layout and components instead of XML. (is this correct?)

How can I make my app to have one activity/view per question? Is this memory intensive? For example the data from the web server contains a hundred questions.

I want the user to have access to previous questions. For example I'm currently on question number 21 and I want to go back to question number 11 for some reasons, is this possible? How can I do this? (All questions are randomized)
For your view, you'd make one Layout containing multiple TextViews whose texts you set only in your java code, that way it can have different questions.
Then there is a ListView for scrolling between the questions or for instance a ViewPager.

Remember to start with small components like the question screen and worry about getting the questions from the server and stuff later
 
clonedaccnt
Old
#3  
Member - OP
Thanks Meter 0
Posts: 33
Join Date: Jun 2014
Is there anybody else wants to share their insights on this?
 
deanwray
Old
#4  
deanwray's Avatar
Senior Member
Thanks Meter 418
Posts: 1,121
Join Date: Apr 2006

 
DONATE TO ME
Quote:
Originally Posted by clonedaccnt View Post
Is there anybody else wants to share their insights on this?
Even though it may not seem like it, this is a very simple app...and it comes down to "simple" understanding of "listview,adapters,intents,asyncTasks,JSON/GSON" and then quite a simple design flow.... if you start to learn this most of what you need you will know and what you don't you will be able to ask direct questions about (cause you will have knowledge to do so)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes