Creating an android application through which students can test for their exam preparation.
Creating an android application through which students can test for their exam preparation.
The quiz format for an examination has been a standard since a long time and still persists to be. The reason for the same will be the efficiency and feasibility it carries with it.
Our application is a simple real-world android application where students can take their test in quiz format. The application is developed using Java and integrated with Firebase.
The project consists of the following stages:
First task will be to set up Android Studio & Firebase.
Once we have everything in place, we can start off with building the authentication on login functionality.
We have to manage two things very well in our project, one is Teacher/Recruiter (who will create questions for the quiz) and another is Student (who will participate in the quiz).
We need support for database handling and authentication. So we'll use here Firebase.Basically the database will be used to store the login information for the users , but the resource can be used for storing quizzes and student's progress history.
The core implementation of our application constitutes successful implementation of the above given requirements including deployment.
Creating an android application through which students can test for their exam preparation.
The quiz format for an examination has been a standard since a long time and still persists to be. The reason for the same will be the efficiency and feasibility it carries with it.
Our application is a simple real-world android application where students can take their test in quiz format. The application is developed using Java and integrated with Firebase.
The project consists of the following stages:
First task will be to set up Android Studio & Firebase.
Once we have everything in place, we can start off with building the authentication on login functionality.
We have to manage two things very well in our project, one is Teacher/Recruiter (who will create questions for the quiz) and another is Student (who will participate in the quiz).
We need support for database handling and authentication. So we'll use here Firebase.Basically the database will be used to store the login information for the users , but the resource can be used for storing quizzes and student's progress history.
The core implementation of our application constitutes successful implementation of the above given requirements including deployment.
Before the start of any development procedure, we need to set up the environment according to our application needs. Then connect our Android Studio with Firebase .
Install Android Studio on your machine.
Install and set up JDK.
Create new Android project.
Like any typical application, the source code of java should be in a java
folder and the source code of xml should be in a res
folder .
Connect with firebase.
The main objective of this milestone is to make sure that you have the required development environment in place.
On completion of the above requirements, run the application using virtual device
and the end result should be as shown in the picture below.
Firebase is a service provided by Google for configuring the backend of any application with all the general necessities like database preparation, authentication using various methods, etc. In this milestone, we’ll be preparing our database and setting up authentication using email and password.
[Note: Use the references provided to implement the following requirements.]
Setup sign-in method using Email/Password.
Declare the dependency for the Firebase Authentication Android library in your module ( app-level ) Gradle file ( usually app/build.gradle ).
dependencies {
// Import for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:26.3.0')
// Declare the dependency for the Firebase Authentication library
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation 'com.google.firebase:firebase-auth'
}
To use an authentication provider, you need to enable it in the Firebase console. Go to the Sign-in Method page in the Firebase Authentication section to enable Email/Password sign-in and any other identity providers you want for your app.
Android has Material Components
, which helps in building our frontend.
Create a new activity named Login
. Style the activity so that it looks similar to the one shown below.
[Note: You can design as you like.]
Now we will create an activity where there will be two options Create a new quiz and quiz history .
[Note: You can design as you like.]
Now we wil create one more activity through which all the questions will be managed i.e add or delete.
[Note: You can design as you like.]
App-Bar
in home activity.xml
and java
files so that all the work is done accurately as mentioned earlier.You can use Listview or Recycleview to show questions as mentioned earlier. Using Listview or Recyceview , you can show the questions and their options with answer.
Now we wil create an activity where there will be another two options: Available Quizzes and Progress history .
[Note: You can design as you like.]
After choosing any one of the available quizzes in Home Activity, students will be able to see some information about the quiz such as the name of the quiz, what should be informed about taking the quiz, how long can this quiz be given etc. After viewing all of these and clicking the start button , a student will able to take that quiz.
[Note: If a student is unable to answer all the questions before the time countdown ends, the test will automatically close and the result will be shown of the number of answers.]
[Note: You can design as you like.]
Now we wil create a progress activity through which students can see the results of their previous quiz here.
[Note: You can design as you like.]
Create a new component called App-Bar
in home , exam & history activity.
Add the necessary code in the xml
and java
file so that all the work is done accurately as mentioned earlier.
Create a timer function for back counting.
new CountDownTimer(30000, 1000) {
public void onTick(long millisUntilFinished) {
mTextField.setText("seconds remaining: " + millisUntilFinished / 1000);
}
public void onFinish() {
mTextField.setText("Time Up!");
}
}.start();
By the end of this milestone, you should have a functional quiz app, applicable for teachers/recruiters as well as students.