Monday, 15 March 2010

android - how to create contents in an activity dynamically -



android - how to create contents in an activity dynamically -

i developing android application, in user can take test , score. so, have created database 50 questions , want take question number randomly using random class , retrieve question database , show in activity. , clicking "next question" button in activity, want same activity loaded different question. how can write code this?

why want load same activity again?

i'd create activity (fragment), main design, , function (call redisplay()), displays question, answers, etc. in oncreate(), i'd phone call function, , every time, user clicked on "next question" text, i'd save them answers, , phone call redisplay() function, show other questin.

android android-intent android-activity

No comments:

Post a Comment