Re: [blrdroid] Questions and Answers with Option - Need Suggestion To Achieve this in Android

From: Gaurav D.
Sent on: Monday, January 13, 2014 11:40 AM

Hi Pravin,
Are you trying to implement something like in Crambuddy?  (search for it on playstore).
I have implemented this using viewpager and maintain a state for each question.. You can do this by mapping the ID of the question to the chosen option.. Or create a model that will have the state of each question and map The ID to the state. At the completion store The data in database as user can constantly update / change the selected option and doing the database operation each time it would be very expensive. In case, you need more help you can revert back on this email. Hope it helps you.

Best,
Gaurav Dingolia

On Jan 13,[masked]:53 AM, "pravin" <[address removed]> wrote:
Hi Amrit,

Thanks for your reply.
Yes, I have my set of questions in one table and option of each questions in second table with both table have  primary key qt id . and after user response on each qt I will have one user response table to update the records.

so can it be possible to update the answers on directly sqlite db on each qt response instead of storing all answers in HashMap or Array List etc and then dump into database. Which way is more faster? 

And about options - the  view will be dynamic like depends on qt type it should visible the view check box, radio, editText, seekBar etc. How all views to bring dynamic on qt type ?


Thanks in Adv.... You always help full :)


Regards
Pravin









On Sun, Jan 12, 2014 at 2:32 PM, Amrit Sanjeev <[address removed]> wrote:

You'll need to use a view pager for this.. You could store the questions and answers in a sqlite db if they change often and user a pager adapter with a cursor to get the data to the view pager ..

  If you search on Google you'll find plenty of examples for each of these concepts  ..

Cheers
Amrit

On Jan 12,[masked]:24 PM, "pravin" <[address removed]> wrote:
Hi All,

I have a requirement for design a screen and implement it.

The requirment is :

I will have 100 questions and with option for each question to answer them.

I want to achieve this with on Swipe next question will appear with options.

Can you please suggest me which way I can achieve and implement this.

You can send any demo link also or any POC also.

Thanks all in adv.

Regards
Pravin









--



Thanks & Regards
    Pravin Mohol
  [masked])





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by pravin ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about pravin, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Amrit Sanjeev ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Amrit Sanjeev, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--



Thanks & Regards
    Pravin Mohol
  [masked])





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by pravin ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about pravin, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

Our Sponsors

  • Though Works

    Location Sponsor

  • GTUG

    Sponsor

  • Yourstory.in

    Media Partner

  • Startup Weekend

    Community Partner

  • Yahoo

    Location Sponsor

  • Intel

    Location Sponsor

  • Apigee

    Location Sponsor

  • Intuit

    Location Sponsor

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy