[android-developers] Re: How should I design questionnaire on android?

2011-03-29 Thread usher
Thanks guy.
What I am thinking is #1 has very clear and clean coding style, each
question stands their own activity and screen.
#2 needs one super activity to take care of everything.

If you were me, which way you will go?


On Mar 11, 6:05 pm, usher usher...@gmail.com wrote:
 Hi friend, I am trying to implement a questionnaire on android,  and I
 have two solutions, but I am not sure which one is better, please
 advise.

 Basically I need display these 10 questions to user, on the bottom of
 each question, it will display Next and Previous button. There 10
 questions are coming from server, so I will have to create part of UI
 dynamically.

 Here are two solutions:

 1. Create a Question activity, then make 10 instances of this
 activity.
     The problem for this one is, when we click Previous, we have to
 finish() current question activity, and recreate new instance for
 current question when we click Next from that Previous question.
 In this case, we are creating so many instances

 2. Create one Question activity, put ViewFlipper into this activity
 layout, which will be used to mimic Next and Previous action.

    Which way is better? Any idea? Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How should I design questionnaire on android?

2011-03-29 Thread Maps.Huge.Info (Maps API Guru)
Why would you need an app to implement this? A simple web page would
work just as well, be easier to maintain and also work on virtually
any device, including iPhone, Android, tablets and those devices where
the market wasn't installed. If you wanted to limit the questionnaire
to just Android devices, you could check the agent.

I guess a better question would be: Why try and kill a gnat with a
sledgehammer?

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How should I design questionnaire on android?

2011-03-29 Thread usher
I did this just for practice and learning..

There is another question:

where should we store and manage the questionnaire data?

Solution 1: If we store the data in the HomeActivity, which is the
entry point of the whole app, how are we gana share this information
between question activity instances.

Solution 2: We can store in a class named Controller, which has
nothing to do with activities... all the question activity instances
will come to this central controller get the question data and
display.

What I am currently using is solution 2, but is it a good and clean
way to do so?

Thanks guys.


On Mar 29, 2:29 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 Why would you need an app to implement this? A simple web page would
 work just as well, be easier to maintain and also work on virtually
 any device, including iPhone, Android, tablets and those devices where
 the market wasn't installed. If you wanted to limit the questionnaire
 to just Android devices, you could check the agent.

 I guess a better question would be: Why try and kill a gnat with a
 sledgehammer?

 -John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How should I design questionnaire on android?

2011-03-14 Thread lbendlin
You may want to consider a poor man's solution to questionnaires - use
SharedPreferences nested preference screens... with some code to jump
out from the last nesting level.

On Mar 14, 4:51 pm, TreKing treking...@gmail.com wrote:
 On Fri, Mar 11, 2011 at 4:05 PM, usher usher...@gmail.com wrote:
  Which way is better?

 Considering you stated a clear problem with #`1 and none with #2, you
 probably answered your own question.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en