This is for a game i am trying. First(1st activity) to Fith level(5th activity) have questions with multiple choice. The user is taken to the next level irrespective of what his answer is. At the end of the fifth level, he is told that 1) You have cleared all OR IF ONE OR MORE ARE WRONG 2) You have made a mistake.
i.e he is notified of his result at the end of five levels.(he is not told which question is incorrect just that he has made a mistake)
Can somebody help me with the codes?
Here is the code to get you started with SharedPreferences
This is how you store in SharedPref, you can use it in each level to store the result:
Similarly you use
getBooleanto retrieve the values which you have stored (in the last activity)!