First Android App – Part 6
Today I was able to get more work done on the application. When users select to view the questions using the flash card feature, they are able to view the question and then they can click on the question which will then take them to the answer. Once there, the user can click on the back button to go back to the question or click on the next button to go to the next question. Below is a screenshot that shows how this looks like:
After the user clicks on the question, they will see the answer as follows:
If the user wishes to go back to the previous question, then he/she will have to click on the back button (I will most likely change the location and the look of this icon later … for now, I just wanted something that worked). If the user wishes to view the next question (in this case question #4) he’ll have to press the next button. This works great, I am hoping on adding a feature where the user can view the questions in a random order (I have implemented this, I just need to find the best way to allow the user to select this format).
There is a nasty little bug with the way I have coded the above mentioned feature. There are 100 questions, and conceivably, the user will go thru all 100 questions. At the moment, all i am doing is keeping each question in the stack giving the users the option to hit the ‘back’ button on their phone to go back to a previous question they went thru. Well, with 100 or so questions, this can take up a lot of memory and may slow down your phone (something that has already happend to me). I am thinking of only keeping a few questions (maybe 10 or so, and even allow the user to configure this amount) to avoid this problem. There are other ways to fix this, but I’ll have to think about how I can solve this issue soon. For now, I am happy with the progress of the app and am looking forward to enhancing this! If all goes well, this should be out early next month and I can’t wait to see what kind of reaction/feedback I will get from this little app of mine!
Leave a comment