Skip to content

QuizGame is an Android application that allows users to participate in various quizzes across different levels. The app is integrated with Firebase for user authentication and Firestore for storing user progress.

Notifications You must be signed in to change notification settings

Pratiksha-Rajpurohit/QuizGame

Repository files navigation

QuizGame

QuizGame is an Android application that allows users to participate in various quizzes across different levels. The app is integrated with Firebase for user authentication and Firestore for storing user progress.

Features

  • User authentication with Firebase
  • Multiple levels of quizzes
  • Different categories of quizzes
  • data storage with Firebase Firestore
  • Responsive UI with RecyclerView and GridLayoutManager

ScreenShots

Screenshot 2024-05-23 193156 Screenshot 2024-05-24 103144 Screenshot 2024-05-23 192330 Screenshot 2024-05-23 192642 Screenshot 2024-05-23 192709 Screenshot 2024-05-23 192821 Screenshot 2024-05-23 192739

Code Overview

MainActivity.kt

This is the entry point of the application. It handles Firebase initialization and sets up the main screen with two buttons: "Start Quiz" and "Logout". The "Start Quiz" button navigates to the Levels screen, and the "Logout" button logs the user out and returns to the login screen.

LevelsActivity.kt

This activity displays a list of quiz levels. It uses a RecyclerView with a GridLayoutManager to show the levels.

QuizActivity.kt

This activity handles the quiz logic. It fetches quiz data from an API, displays the questions and options, and handles user interactions. When a user selects an option, it highlights the correct and incorrect answers. The user can proceed to the next question using the "Next" button. After answering all questions, the result page is displayed.

FinishActivity.kt

This activity shows the user's score after completing a quiz. It displays the result in the form of stars based on the user's performance. The page also provides options to go to the previous level, next level, or quit the game. It also stores the user's progress in Firebase Firestore.

SignUpActivity.kt

This activity allows new users to create an account. It integrates with Firebase Authentication to register users using their email and password.

SignInActivity.kt

This activity allows existing users to log in. It uses Firebase Authentication to authenticate users with their email and password. Upon successful login, users are redirected to the main screen.

Firebase Integration

  • The app uses Firebase Authentication for user login and registration.
  • User progress is stored in Firestore, which includes the level and the number of correct answers.

Contact

For any questions or suggestions, please open an issue on GitHub or contact the repository owner at rajpurohitpratiksha123@gmail.com.

About

QuizGame is an Android application that allows users to participate in various quizzes across different levels. The app is integrated with Firebase for user authentication and Firestore for storing user progress.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages