Professional Documents
Culture Documents
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.
External Viva
1.
2.
Abstract
i
Table of Contents
Abstract i
Table of Contents ii
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
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
Android Attendance App Chapter 1
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;
@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
@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;
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;
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
///......................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
);
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
14