Android: I need to prepare the UI from the webservice
I am a newbie to Android and playing around with the UI and SQLLite for a while and it looks pretty good to me . We have a requirement that for the App that all the questions would be coming from the server through REST / Web service which would be displayed on the App..
say for e.g if there are 4 questions 1) Enter your Name -- Text开发者_如何学运维 Box 2) Did you sleep well last night -- YES / NO 3) How many hours did you sleep - Text Box 4) How did you hear about us -- Drop down
So the requirement is that the Questions would be displayed on the App after doing a SYNC with the server during the SYNC with the server the Questions would be downloaded from the SERVER through REST / Web service..if the phone is not connected then pull the questions from the Database...
These questions are simple questions and they change quite often and we have a similar app which is there for iphone which does this ....
Has any one worked on this before please advice me so that I can get it started
We did something similar for an e-Learning app. Decide on the number of type of questions and create custom types by extending the conventional views.
Eg. To get a multiple choice question: Using TextView and RadioGroup (RadioButtons) you can create a custom type. Create your own attributes or create setter/getters to initialize title, options, right answer and load the view dynamically at run time.
精彩评论