• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Questions and Answers storage for tutorial applications.

I'm building a tutorial application and part of it is to have some questions and answers at the end of each section, but was wondering how I'd go about storing the questions and answers. Like would I even need to bother storing the questions and answers in SQLite or SharedPreferences, as I can simply create all of the Questions objects without the need to first store them and then pull them back out again. I was thinking when the user inflates the questions activity I just call a method that creates a whole load of Question objects by hardcoding in the data.
 
You could hardcode all the questions and answers. That would be the simplest solution. Obviously if you ever need to change the questions, this requires a rebuild and re-installing the APK.
 
You could hardcode all the questions and answers. That would be the simplest solution. Obviously if you ever need to change the questions, this requires a rebuild and re-installing the APK.
That's a good point, didn't realize I'd need to rebuild and re-install the APK if I update the questions, which probably will happen. I'll hard code them for now and consider an alternative approach later on. Thanks!
 
Back
Top Bottom