I am working on learning application. I want to add MCQ test functionality in my app. I want to load data from the server when the test started. and it will not call to the server for each question because it will slow down test process. I want to load all the question when the test starts and a new question will appear only when clicking on next question button. There will be four option in each question so at the end I want to send data to the server to verify the answer. I actually confused in what should I used to save question in internal memory. and then their answer to submit to the server.
Asked
Active
Viewed 68 times
1 Answers
0
Android developer guide has an explanatory list of available options for storage that you can leverage. Since you would want to keep this information secure. I suggest you should use one from the list below
- Internal file storage: Store app-private files on the device file system.
- Databases: Store structured data in a private database.
Although a lot depends on the size of data and other specifics of your use case.
Based on the discussion in the comments. Here is a cool answer to the same, i.e serialize/deserialize the objects.

Count
- 1,395
- 2
- 19
- 40
-
can i use objects to store this questions and their options? – Mar 01 '18 at 09:28
-
Yes, you can serialize the object(s) into files. if you prefer. – Count Mar 01 '18 at 10:12
-
Let me add a link to the snippet. – Count Mar 01 '18 at 10:14