Android Online Voting App using Firebase as Admin Panel
Android Online Voting App using Firebase
Here, in this blog, I have to show you an android app where firebase is used as a backend service. Android Studio is used for the frontend, whole design and coding is done by using XML and Java. Firebase Realtime database is used for storing user data.
Also in the Firebase Realtime Database, the admin can have several candidates but have to use only 4 parties, i.e. more than one candidate from one party but they must have from Janata Party, Republic Party, Democratic Party, and Muslim Party.
You can change the parties in the Java code, according to your changes your database values will change. Later I will show you how data is represented in the Firebase.
Android
Splash, Registration, and Log in
In the registration, we simply take the user’s Phone number, Name, and Password along with also sending some values to the database. Like initially user’s vote is 0 and when the user votes for a particular party then the vote will become 1. Same for the party vote.
Screenshots of the screens
Home Page
Here I display the current candidate’s name, party name, and Image and a Button with Vote Now. When the user clicks on the Vote Now Button then a popup screen will appear, where it is clearly mentioned that the user needs to add their Fingerprint or Biometric to continue.
Screenshots
Verification
After Biometric authentication user will redirect to a screen where the user needs to add an ID number that must be 10 digits. After entering the number user will redirect to the Face Detection Page, where the user needs to show their face and verify as human. Here Firebase Face Detection Feature is used to detect faces.
Screenshots
All-Party Page
After face detection is completed, the user will redirect to the all-party page, where the user is able to see all the candidates that participate in the election. Click on a particular candidate to check the details information of the candidate. All details are fetched from the database that the admin added.
Screenshots
Final
After getting the details user can vote by clicking the Vote button. Then user votes will store in the database.
Screenshots
Admin Page
Here admin can check the total votes and the parties’ votes also be able to check the individual votes.
Screenshots
Firebase
How to upload candidates in the Firebase
That’s it. This is all about the Online Voting app. This app is basically for Final year students’ final project purposes.
If anyone has any query or wants to buy this project feel free to contact on the below mention details.
Mail id: barmangolap15@gmail.com
WhatsApp or Call number: +91–8473855948
You can also find me:
Instagram: @androidapps.development.blogs
Link — https://www.instagram.com/androidapps.development.blogs/
Youtube: Golap Barman
Link — https://www.youtube.com/channel/UCqHYLy2nzO0pONL5BueoT6Q/videos