android


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.

Related Links

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

Categories

HOME
kentico
twitter-bootstrap-3
ggplot2
nvd3.js
rdbms
serialization
oracle-apex-5
jsf-2.2
nuget
yandex
aws-cli
interpolation
hpc
iis-6
octave
endeca
openpyxl
why3
line
pybossa
null-pointer
android-7.0-nougat
database-connection
googlebot
named-entity-recognition
aggregation
bulletphysics
android-sharedpreferences
pylons
mat
winexe
autodesk-designautomation
mockjax
left-join
code-snippets
joomla2.5
python-import
xdocreport
amazon-ses
news
unordered-map
comparison-operators
sharp-snmp
strftime
openrasta
dotnet-httpclient
hammer.js
stdmap
check-mk
cpu-cache
testrail
cvxpy
winusb
jodd
delta
jtwig
lua-telegram-bot
gcloud-ruby
upx
kendo-upload
opl
dynatree
fiware-monitoring
vigenere
microsoft-reporting
opserver
jdk1.7
viola-jones
nsurlsessiondatatask
adehabitathr
tweenlite
memset
cfcache
syndicationfeed
bjyauthorize
argouml
idn
apache-whirr
httponly
azman
xcelsius
event-receiver
cac
office-2007
addchild
scrollbars
qtabbar
spread
echo3
linfu-dynamicproxy
online-storage

Resources

Encrypt Message