Stopwatch in Android Microproject
Stopwatch in Android Microproject
Stopwatch in Android Microproject
Micro-Project Report
On
Submitted By
Fere R. B.
Wakade P. G.
Gaikwad S. Y.
Subject Teacher
Mr. Sagare S. V.
In Fulfillment of
Diploma In Computer Engineering
2020-21
1
J.S.P.M. Group of Institute’s
Swami Vivekanand Institute of Polytechnic
Certificate
This is to certify that, Fere Rahul Bhairu, Wakade Pavan Govind, Gaikwad Shubham
Yuvraj
Students of Third Year Computer Engineering has completed the micro project on
“Stopwatch in android studio”for fulfillment of the course work in Diploma in
Computer Engineering. In this volume they have submitted a satisfactory report in
the academic year 2020-2021
Prof. Sakhare R. S.
Principal
2
ACKNOWLEDGEMENT
We offer our sincere and hearty thanks with a deep sense of gratitude to our subject
teacher Mr. Sagare S. V. and HOD of Computer Department Mr.Patil S.S. for their valuable
direction and guidance to our micro project, their meticulous attention towards ourproject without
We are thankful to our Principal Prof. SakhareR.S. for his encouragement towards
ourproject. We are also thankful to our families and all friends for their support and encouragement
3
INDEX
Sr.
No. Contents Page No
Part A – Plan
1. Brief description
5
2. Aim of the Micro-Project
5
3. Course outcome addressed
1 5
4. Proposed methodology
6
5. Action plan
6
6. Resources used
7
7. Name of team members
7
1. Rationale
8
2. Brief description
8
3. Aim of the micro project
8
4. Course outcome achieved
9
5. Actual methodology followed
2 9
6. Action plan
15
7. Actual resources used
15
8. Skill Developed / Learning outcome of this
Micro-Project:
16
9. Application of this micro project
16
4
Part A Plan
1. Brief Description:
4. Proposed Methodology :
5
1. Focused on selection of appropriate topic for micro-project.
2. Select the topic i.e. “Stopwatch in android studio”.
3. Brief study as well as a survey on our topic .
4. Gather all information based on the topic of micro project.
5. Analysis and study of our topic in detail.
6. Following all the above methodologies we successfully completed with our
microproject.
5. Action plan :
Name of
Sr. Planned Planned Responsible
Details of Activity
No. start Date Finish Date Team
Members
Gathering The Raw
02.02.2021 10.02.2021
1. Information Related
3:00 to 5:00 3:00 to 5:00
To Project
12.02.2021 17.02.2021
2. Analysis
3:00 to 5:00 3:00 to 5:00 Fere Rahul
18.02.2021 21.02.2021
3. Designing
3:00 to 5:00 3:00 to 5:00 Wakade Pavan
22.02.2021 04.03.2021
4. Implement of Coding
3:00 to 5:00 3:00 to 5:00
05.03.2021 15.03.2021 Gaikwad
5. Testing of Project
3:00 to 5:00 3:00 to 5:00 Shubham
18.03.2021 25.3.2021
6. Deployment of Module
3:00 to 5:00 3:00 to 5:00
01.04.2021 08.04.2021
7. Prepare Out Put
3:00 to 5:00 3:00 to 5:00
Prepare Report on 20.04.2021 30.04.2021
8.
Micro Project 3:00 to 5:00 3:00 to 5:00
6. Resources Used :
6
Sr.
No Name of Specification Quantity Remark
Resource/Material s
1 Personal computer Processor: Ryzen 3 3200g. Ram: 8GB
DDR4 3133MHz, HDD: 512GB
1 ____
2 Internet 10mbps BSNL LAN Network __ __
3 Android studio __ ___
Version 4.2.1
7
1. Rationale :
develope a stopwatch in android studio.
2. Brief Description :
The stopwatch is basically a timepiece that is designed particularly to measure the
time elapsed between the activation and deactivation of the stopwatch. The users can start the
Stopwatch and stop it anytime. It was originally invented by Samuel Watson. There is also a
button to restart the stopwatch that will set the stopwatch to starting. So our task is to make an
application for Stopwatch which can be used whenever required.
A large digital version of a stopwatch designed for viewing at a distance, as in a
sports stadium, is called a stop clock. In manual timing, the clock is started and stopped by a
person pressing a button. In fully automatic time, both starting and stopping are triggered
automatically, by sensors. The timing functions are traditionally controlled by two buttons on the
case. Pressing the top button starts the timer running, and pressing the button a second time stops
it, leaving the elapsed time displayed. A press of the second button then resets the stopwatch to
zero. The second button is also used to record split times or lap times. When the split time button
is pressed while the watch is running it allows the elapsed time to that point to be read, but the
watch mechanism continues running to record total elapsed time. Pressing the split button a
second time allows the watch to resume display of total time.
8
c) Learned the different syntax and function of the android studio.
Code :
package com.codinginflow.chronometerexample;
import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Chronometer;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
private Chronometer chronometer;
private long pauseOffset;
private boolean running;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
chronometer = findViewById(R.id.chronometer);
chronometer.setFormat("Time: %s");
chronometer.setBase(SystemClock.elapsedRealtime());
chronometer.setOnChronometerTickListener(new Chronometer.OnChronometerTickListener() {
@Override
public void onChronometerTick(Chronometer chronometer) {
if ((SystemClock.elapsedRealtime() - chronometer.getBase()) >= 10000) {
chronometer.setBase(SystemClock.elapsedRealtime());
Toast.makeText(MainActivity.this, "Bing!", Toast.LENGTH_SHORT).show();
}
}
});
}
public void startChronometer(View v) {
if (!running) {
chronometer.setBase(SystemClock.elapsedRealtime() - pauseOffset);
chronometer.start();
running = true;
}
}
public void pauseChronometer(View v) {
if (running) {
chronometer.stop();
9
pauseOffset = SystemClock.elapsedRealtime() - chronometer.getBase();
running = false;
}
}
public void resetChronometer(View v) {
chronometer.setBase(SystemClock.elapsedRealtime());
pauseOffset = 0;
}
}
Output :
10
11
12
13
6. Action plan :
Name of
Sr. Planned Planned Responsible
Details of Activity
No. start Date Finish Date Team
Members
Gathering The Raw
02.02.2021 10.02.2021
1. Information Related
3:00 to 5:00 3:00 to 5:00
To Project
12.02.2021 17.02.2021
2. Analysis
3:00 to 5:00 3:00 to 5:00 Fere Rahul
18.02.2021 21.02.2021
3. Designing
3:00 to 5:00 3:00 to 5:00 Wakade Pavan
22.02.2021 04.03.2021
4. Implement of Coding
3:00 to 5:00 3:00 to 5:00
05.03.2021 15.03.2021 Gaikwad
5. Testing of Project
3:00 to 5:00 3:00 to 5:00 Shubham
18.03.2021 25.3.2021
6. Deployment of Module
3:00 to 5:00 3:00 to 5:00
01.04.2021 08.04.2021
7. Prepare Out Put
3:00 to 5:00 3:00 to 5:00
Prepare Report on 20.04.2021 30.04.2021
8.
Micro Project 3:00 to 5:00 3:00 to 5:00
Sr.
No Name of Specification Quantity Remark
Resource/Material s
1 Personal computer Processor: Ryzen 3 3200g. Ram: 8GB
DDR4 3133MHz, HDD: 512GB
1 ____
2 Internet 10mbps BSNL LAN Network __ __
3 Android studio __ ____
Compiler and execution
14
8. Skill Developed / Learning outcome of this Micro-Project:
We learn that how to edit the program and how to do the presentation for the project.
15