Welcome to the first exercise. This exercise is about the EncryptedSharedPreferences.
You should have already set up this project in the setup branch.
If you have already set up the project, please pull the assignment branch to get the base code for this exercise.
If you have not, please pull the assignment branch directly. For troubleshooting please refer to the ReadMe in the setup branch.
The provided code contains a simple app with a single view of a colored background. By tapping anywhere on the screen, the background color will change to a random color.
- Save the current color in the Shared Preferences.
- The color should be stored encrypted. Use Encrypted Shared Preferences for this.
- When the app is restarted, the color should be restored.
| Task | Points |
|---|---|
| Saving and loading the color | 0.5 |
| Storing the color encrypted | 0.5 |
| Total | 1.0 |
Submit your solution by zipping the project folder and uploading it under "Aufgabe 9 Persistenz & Datenbankanbindung" in the Ilias mailbox as "ex1.vorname.nachname.zip"
The assignment is due on Thursday, 16.01.2024 at 15:00. Later submissions will not be graded and receive 0 points.