You are on page 1of 19

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“Jnana Sangama”, Belgaum - 590018

A Mini Project report on

”Android Attendance App”


submitted in partial fulfillment for the award of the degree of
BACHELOR OF ENGINEERING
in
INFORMATION SCIENCE & ENGINEERING
by
1CR14IS126 Sachin S V
1CR14IS130 Sai Teja Reddy
1CR14IS175 Vishnu M
1CR14IS132 Sandesh Krishna H
Under the Guidance of
Dr. Sudhakar K N
Associate Professor
Department of ISE, CMRIT, Bengaluru

CMR INSTITUTE OF TECHNOLOGY


DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING
#132, AECS Layout, IT Park Road, Bengaluru - 560037
2021-22
CMR INSTITUTE OF TECHNOLOGY
DEPARTMENT OF INFORMATION SCIENCE & ENGINEERING
#132, AECS Layout, IT Park Road, Bengaluru - 560037

Certificate
This is to Certified that the project work entitled “Android Attendance App”
carried out by Sachin S V (1CR19IS126), Sai Teja Reddy (1CR19IS130),
Vishnu M (1CR19IS175),and Sandesh Krishna H (1CR19IS132) in partial
fulfillment for the award of Bachelor of Engineering in Information Science &
Engineering of the Visveswaraiah Technological University, Belgaum during the year
2021-22. It is certified that all corrections/suggestions indicated for Internal Assess-
ment have been incorporated in the Report deposited in the departmental library.
The project report has been approved as it satisfies the academic requirements in
respect of Project work prescribed for the said Degree.

Signature of Guide Signature of HoD Signature of Principal


Dr Sudhakar K N Dr. Farida Begam Dr. Sanjay Jain
Designation Professor & Head Principal
Department of ISE Department of ISE CMRIT,
CMRIT CMRIT Bengaluru - 37

External Viva

Name of the Examiners Institution Signature with Date

1.

2.
Abstract

Android Attendance App deals with the maintenance of the student’s


attendance details. It generates the attendance of the student on basis of
presence in class. It is maintained on the daily basis of their attendance.
The faculty will be provided with separate username password to make the
student’s status. The Faculty handling the particular subjects responsible
to make the attendance for all students. Only if the student present on that
particular period, then the attendance will be calculated. The students
attendance reports based on weekly and consolidate will be generated
Keywords: Maintenance of Attendance, Multiple User-Access.

i
Table of Contents

Abstract i

Table of Contents ii

List of Figures iii

1 Preamble 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Proposed System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Plan of Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.5 Objective of the Project . . . . . . . . . . . . . . . . . . . . . . . . . . 2

2 System Design 3

3 Implementation 4

4 Conclusion 13

References 14

ii
List of Figures

3.1 MainActivity.java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2 AddStudentAttendance.java . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.3 loginpage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4 view student and faculty . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.5 registration page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.6 Attendance -marking page . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.7 student attendance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

iii
Chapter 1

Preamble

A preamble is a brief introduction to a report.

1.1 Introduction
Android Attendance App is software developed for daily student attendance in schools,
colleges and institutes. If facilitates to access the attendance information of a partic-
ular student in a particular class. The information is sorted by the operators, which
will be provided by the teacher for a particular class. This system will also help in
evaluating attendance eligibility criteria of a student.

1.2 Proposed System


This Application is built for automating the processing of attendance. It also enhances
the speed of the performing attendance task easily. It also generates periodic reports
to keep a check on the students who are regular who are not”. Faculty has to login
to the system then in the attendance option they have to select appropriate class,
semester and subject. So this will display the list of the students who are eligible
to appear in this session. So now the faculty has to just select the students name
from the manual attendance sheet according to their roll number and then submit the
sheet. This will add the selected students as present student in that particular session.
This system is very useful to the office staff also because they can generate various
types of reports and submit them to respective faculties also or also can be submitted
to the College Coordinator. Office staff can also generate black list of students who
have attendance less than 50 or 80

1
Android Attendance App Chapter 1

1.3 Plan of Implementation


All the attendance given by the faculty is displayed here.Admin can view Attendance
details, like how many students are present in a particular day and can generate
a report based on this.Faculty can Enter the students details, like Student Name,
Register Number, Semester, Year, Session, Attendance etc., Android Attendance App
is an innovative tool to maintain and manage the attendance of students .These tools
can be software to monitor attendance details. Prefixing a word “online” to this tool
makes this tool very resourceful technique.

1.4 Problem Statement


The Existing system is a manual entry for the students. Here the attendance will be
carried out in the hand written registers. It will be a tedious job to maintain the record
for the user. The human effort is more here. The retrieval of the information is not
as easy as the records are maintained in the hand written registers.This application
requires correct feed on input into the respective field. Suppose the wrong inputs are
entered, the application resist to work. so the user find it difficult to use.

1.5 Objective of the Project


The intention of developing Android Attendance Application is to computerise the
traditional way of taking attendance. Another purpose for developing this software is
to provide various levels of profiles in accounts such as admin, teacher , where each
user has access to specific attributes of the application.

Dept Of ISE, CMRIT, Bengaluru - 560037 2


Chapter 2

System Design

Accessibility

3
Chapter 3

Implementation

package com.android.attendance.activity;
import com.example.androidattendancesystem.R;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity


Button start;

@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.activitym ain);
start =(Button)findViewById(R.id.buttonstart);
start.setOnClickListener(new OnClickListener()
@Override
public void onClick(View v)
// TODO Auto-generated method stub
Intent intent =new Intent(MainActivity.this,LoginActivity.class);
startActivity(intent);

);

4
Android Attendance App Chapter 3

Figure 3.1: MainActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu)
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;

Dept Of ISE, CMRIT, Bengaluru - 560037 5


Android Attendance App Chapter 3

Figure 3.2: AddStudentAttendance.java

package com.android.attendance.activity;
import com.android.attendance.bean.StudentBean;
import com.android.attendance.db.DBAdapter;
import com.example.androidattendancesystem.R;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;

Dept Of ISE, CMRIT, Bengaluru - 560037 6


Android Attendance App Chapter 3

import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
public class AddStudentActivity extends Activity
Button registerButton;
EditText textFirstName;
EditText textLastName;
EditText textcontact;
EditText textaddress;
Spinner spinnerbranch,spinneryear;
String userrole,branch,year;
private String[] branchString = new String[] ”cse”;
private String[] yearString = new String[] ”SE”,”TE”,”BE”;
@Override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.addstudent);
spinnerbranch=(Spinner)findViewById(R.id.spinnerdept);
spinneryear=(Spinner)findViewById(R.id.spinneryear);
textFirstName=(EditText)findViewById(R.id.editTextFirstName);
textLastName=(EditText)findViewById(R.id.editTextLastName);
textcontact=(EditText)findViewById(R.id.editTextPhone);
textaddress=(EditText)findViewById(R.id.editTextaddr);
registerButton=(Button)findViewById(R.id.RegisterButton);
spinnerbranch.setOnItemSelectedListener(new OnItemSelectedListener()
@Override
public void onItemSelected(AdapterView¡?¿ arg0, View view,
int arg2, long arg3)
// TODO Auto-generated method stub
((TextView) arg0.getChildAt(0)).setTextColor(Color.WHITE);
branch =(String) spinnerbranch.getSelectedItem();

@Override
public void onNothingSelected(AdapterView¡?¿ arg0)
// TODO Auto-generated method stub

);
ArrayAdapter¡String¿ adapterb ranch = newArrayAdapter < String > (this,
Dept Of ISE, CMRIT, Bengaluru - 560037 7
Android Attendance App Chapter 3

android.R.layout.simples pinneri tem, branchString);


adapterb ranch
.setDropDownV iewResource(android.R.layout.simples pinnerd ropdowni tem);
spinnerbranch.setAdapter(adapterb ranch);

///......................spinner2
spinneryear.setOnItemSelectedListener(new OnItemSelectedListener()
@Override
public void onItemSelected(AdapterView¡?¿ arg0, View view,
int arg2, long arg3)
// TODO Auto-generated method stub
((TextView) arg0.getChildAt(0)).setTextColor(Color.WHITE);
year =(String) spinneryear.getSelectedItem();
@Override
public void onNothingSelected(AdapterView¡?¿ arg0)
// TODO Auto-generated method stub

);
ArrayAdapter¡String¿ adaptery ear = newArrayAdapter < String > (this,
android.R.layout.simples pinneri tem, yearString);
adaptery ear
.setDropDownV iewResource(android.R.layout.simples pinnerd ropdowni tem);
spinneryear.setAdapter(adaptery ear);
registerButton.setOnClickListener(new OnClickListener()
@Override
public void onClick(View v)
// TODO Auto-generated method stub
//......................................validation
String firstn ame = textF irstN ame.getT ext().toString();
Stringlastn ame = textLastN ame.getT ext().toString();
Stringphonen o = textcontact.getT ext().toString();
Stringaddress = textaddress.getT ext().toString();
if (TextUtils.isEmpty(firstn ame))textF irstN ame.setError(”pleaseenterf irstname”);
else if (TextUtils.isEmpty(lastn ame))textLastN ame.setError(”pleaseenterlastname”);
elseif (T extU tils.isEmpty(phonen o))textcontact.setError(”pleaseenterphoneno”);
else if (TextUtils.isEmpty(address))
textaddress.setError(”enter address”);

else
Dept Of ISE, CMRIT, Bengaluru - 560037 8
Android Attendance App Chapter 3

StudentBean studentBean = new StudentBean();


studentBean.setStudentf irstname(f irstn ame);
studentBean.setStudentl astname(lastn ame);
studentBean.setStudentm obilenumber(phonen o);
studentBean.setStudenta ddress(address);
studentBean.setStudentd epartment(branch);
studentBean.setStudentc lass(year);
DBAdapter dbAdapter= new DBAdapter(AddStudentActivity.this);
dbAdapter.addStudent(studentBean);
Intent intent =new Intent(AddStudentActivity.this,MenuActivity.class);
startActivity(intent);
Toast.makeText(getApplicationContext(), ”student added successfully”, Toast.LENGTHS HORT ).s

);

Dept Of ISE, CMRIT, Bengaluru - 560037 9


Android Attendance App Chapter 3

Figure 3.3: loginpage

Figure 3.4: view student and faculty

Dept Of ISE, CMRIT, Bengaluru - 560037 10


Android Attendance App Chapter 3

Figure 3.5: registration page

Figure 3.6: Attendance -marking page

Dept Of ISE, CMRIT, Bengaluru - 560037 11


Android Attendance App Chapter 3

Figure 3.7: student attendance

Dept Of ISE, CMRIT, Bengaluru - 560037 12


Chapter 4

Conclusion

The project helps in building the system for automating the attendance system
through an android application. It also focuses on generating monthly attendance
of every student so that it is easy for teachers to analyze it. With this app, we have
proposed an efficient Student Attendance System to take and maintain attendance of
students for all educational institutes. This system is most beneficial especially for
students, who’s access to personal computer maybe limited. Thus this system will be
beneficial for most institutes.

13
References

[1] W3Schools: https://www.w3schools.com/

[2] Wikipedia: https://www.wikipedia.org//

[3] GeeksforGeeks: https://www.geeksforgeeks.org/

[4] Github: https://github.com/

14

You might also like