This Quiz app implements a simple game where users match names and photos. It consists of two core activities:
- Gallery: Displays a list of names and associated photos. Users can scroll through the list, add new entries, remove existing ones, and sort entries alphabetically.
- Quiz: Presents a random photo from the gallery along with three name options, one of which is correct. Users select the correct name, and the app provides feedback on whether the answer is correct.
-
Gallery Activity:
- Add new entries (name and associated photo).
- Remove existing entries by clicking on the photo.
- Sort entries alphabetically and also reversed.
-
Quiz Activity:
- Randomly select a photo from the gallery.
- Display three name options, one of which is correct.
- Provide feedback on the correctness of the selected name, red color appears on the button if wrong, green if correct
- Keep track of the user's score.
- When the user have finished the quiz, a celebration animation displays in the background,(switches back and forth from yellow to green)
- A toast-message appears that you have finished the quiz
- Data Structure: Uses a simple data structure from the Collections interface to maintain photos and names.
- Initialization: Initializes the database with three default photos and names from the resource folder.
- Persistent Storage: Does not persistently store new entries or the score on the phone.
- Memory Management: Ensures proper memory management to prevent memory leaks.
- Navigation: Ensures correct navigation between activities and updates the gallery after adding or removing entries.
- Database: Does not use databases like SQLite or Rooms; instead, utilizes a simple data structure.
- Image Size: Ensures that images are not too large to avoid issues with Git.
- Camera Feature: Considers camera functionality as an optional feature for adding new entries.
- Data Sharing: Uses the Application class to share the data structure throughout the app.
- Clone the repository.
- Open the project in Android Studio.
- Build and run the app on an emulator or physical device.
- Implement persistent storage for new entries and scores.
- Enhance UI/UX for a more engaging user experience.
- Add additional features such as image editing or sharing options.
- Add additional feature, user should be able to select multiple photos when opening the photoalbum
![Skjermbilde 2024-02-08 kl 10 52 10](https://private-user-images.githubusercontent.com/89355523/303286342-d8695d1d-ad40-4472-a84d-ac694b06e720.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTk4MjEsIm5iZiI6MTcyNDYxOTUyMSwicGF0aCI6Ii84OTM1NTUyMy8zMDMyODYzNDItZDg2OTVkMWQtYWQ0MC00NDcyLWE4NGQtYWM2OTRiMDZlNzIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0MzU5OWY1Njk0MzU1ZTMyMjk5ZDU5ZGMwY2NjMTgwMmEzYzU0MjUyMDE1YWVlN2I2OTUzNTNkMDczYzQwMTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rESCYl1fMm4lZaIOFcLuKrF81ehXduXqYByaZKDmw5w)
![Skjermbilde 2024-02-08 kl 10 52 23](https://private-user-images.githubusercontent.com/89355523/303286448-cd85e332-96a6-433b-bc38-96731862ffc3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTk4MjEsIm5iZiI6MTcyNDYxOTUyMSwicGF0aCI6Ii84OTM1NTUyMy8zMDMyODY0NDgtY2Q4NWUzMzItOTZhNi00MzNiLWJjMzgtOTY3MzE4NjJmZmMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1YzdjNzM1Y2Y2ZTljZTA1YjRhYjczNWFlMDc5YzM3ZTE5OWU5ZDVkOGU1NGY0MjBkODQ3ZWY2NjQ5NTQxN2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aD2G4cf-WkXKLPjemNd5XlWUOwfCjCNBbZjovx13dBE)
![Skjermbilde 2024-02-08 kl 10 52 41](https://private-user-images.githubusercontent.com/89355523/303286521-1c5721dc-e800-4f3c-980c-fac9a76dcbff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTk4MjEsIm5iZiI6MTcyNDYxOTUyMSwicGF0aCI6Ii84OTM1NTUyMy8zMDMyODY1MjEtMWM1NzIxZGMtZTgwMC00ZjNjLTk4MGMtZmFjOWE3NmRjYmZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVhOWYxN2E5M2Y4ZmMyZDMxMGYzNTFjMzg0MGM0MjgyM2JiZmE4ZmZiM2MwNjE1NTBkYzE2NWE3MjNkY2Q0NjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rgW68pCIQNAXPTUoRgsJEZt0Glg2s-GxsgFG26_ceBA)
![Skjermbilde 2024-02-08 kl 10 53 01](https://private-user-images.githubusercontent.com/89355523/303286608-2f0f5f0c-60ed-4db2-b1e0-56fe3f10fca7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTk4MjEsIm5iZiI6MTcyNDYxOTUyMSwicGF0aCI6Ii84OTM1NTUyMy8zMDMyODY2MDgtMmYwZjVmMGMtNjBlZC00ZGIyLWIxZTAtNTZmZTNmMTBmY2E3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4ZDI3NTUwMmQ0MmI3MzA0YWMwZDBkNjMxNGY1ODVmYzc2MDljOWVjZjI1MzhhMjZiMTM5NzU2OGUwMzdlYzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nkle0aObpFYB3ImiZyjCBMl8DDGV4hsEhdMHwysGSCo)
![Skjermbilde 2024-02-08 kl 10 55 00](https://private-user-images.githubusercontent.com/89355523/303286927-6936fb81-72eb-4974-aa5d-494596a6ea8d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTk4MjEsIm5iZiI6MTcyNDYxOTUyMSwicGF0aCI6Ii84OTM1NTUyMy8zMDMyODY5MjctNjkzNmZiODEtNzJlYi00OTc0LWFhNWQtNDk0NTk2YTZlYThkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzZjUwYjZjYjM4NzMyZTI4OWE4ZmRjNGJiODY0NzQwMTg3NjAxOTZkNmRjM2ZhMmNmNzEzYTgxYWQ4MTMxYTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xHyUyk9GOQ7FNK05qBbFYRGips668zQQZrFHvqBH_Zw)
![Skjermbilde 2024-02-08 kl 11 03 05](https://private-user-images.githubusercontent.com/89355523/303287994-0625eeed-391c-434a-a632-51ffd88fb603.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTk4MjEsIm5iZiI6MTcyNDYxOTUyMSwicGF0aCI6Ii84OTM1NTUyMy8zMDMyODc5OTQtMDYyNWVlZWQtMzkxYy00MzRhLWE2MzItNTFmZmQ4OGZiNjAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4NThjOWFmODU2YTc4ZGZlZGVlNDVjYTQxZTBjNzI5MGE0MGMwNWI4OGI4MDlmOTE0OTNlMGMwZTU1YmY5MjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Nqa2UVWneQmxciypFQURWgPAc4rFNq-FfSeMYVA0kiY)
![Skjermbilde 2024-02-08 kl 10 55 30](https://private-user-images.githubusercontent.com/89355523/303287013-f4d73733-b009-4c1e-b7b1-f5d4206ff171.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTk4MjEsIm5iZiI6MTcyNDYxOTUyMSwicGF0aCI6Ii84OTM1NTUyMy8zMDMyODcwMTMtZjRkNzM3MzMtYjAwOS00YzFlLWI3YjEtZjVkNDIwNmZmMTcxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNTg0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNlNGQ3NGRmNzllYjVhZjQ5MGU0ZTQ0NGZiZmY5NTAxZDQ2OTY1NWRjMDYwYWUwYzk2OWRjNWJlZWY2YWMzNjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XJ1wtIr56pgAMQJnPuoIZtlztd0LsoyL1F9BJdAq4rw)