Android Resource for Survey App design
I am creating a survey app for android. If I have 50 questions do I create 50 activities and 50 XMLs for each question or there is a better way to do it? I'd appreciate if someone could direct me to a good resource for this problem. How can I ask selected questions based on answers or design skip patterns? Thanks.
No, you want to design as few activities as possible and make then reusable. I would suggest you identify all the potential TYPES of survey questions and then design one activity for each question type. Then when you present a question on the device you load the appropriate activity type and populate it with appropriate data. If you are new to Android I'd suggest you start out with an introductory Android book and work through the first few chapters until you feel comfortable with loading activities and populating them with information.
No - You shouldn't need to create 50 activities & 50 xml files for the layouts. Just create a Question Activity and a question.xml layout file and dynamically populate with your questions and answer interfaces.
usbManager return NullPointerException
Android 4.0 and above: after installing my application how to detect the phone uses android security lock .?
how to get users' gender by ids using FQL query?
Android Location API vs geolocation-API
Manuplate the checkbox state in android lifecycle
Home Button on action bar
Screen on and off via sms received
Create view programmatically with style
Android Crosswalk - Getting the device name
How to reduce image size while taking from gallery through imagepath
appcompat_v7 folder function
Android GridLayout of Buttons with no gaps
how to convert an class extends activity into independent class
onCreate() not being called on orientation change
gif loop count and last image for android
How do I use 9Patch images properly. I keep getting the 1px lines around