Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

Maharashtra State Board of Technical Education, Mumbai

Micro-Project Report
On

“Stopwatch in android studio”

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

Maharashtra State Board of Technical Education, Mumbai

1
J.S.P.M. Group of Institute’s
Swami Vivekanand Institute of Polytechnic

Computer Engineering Department

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

Mr. Sagare S. V. Mr. Patil S. S.

Subject teacher H.O.D.

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

taking care of their voluminous work.

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

towards our project.

Fere Rahul Bhairu


Wakade Pavan Govind
Gaikwad Shubham Yuvraj

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

Part B – Outcomes after execution

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

Stopwatch in Android studio

1. 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.

2. Aim of the Micro project :

a) To give detailed information of how to create stopwatch in android studio.


b) To learn and code in java in android studio.
c) To describe about the functions and syntax used in java for developing android
applications.
d) To learn and give information about mobile application development.

3. Course outcome addressed :

a) Create a stopwatch in android studio.


b) Use a java language to create a stopwatch and learn the function and syntax of java
language and learn about android studio.

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. Names of Team Members :

Rahul Bhairu Fere


Wakade Pavan Govind
Gaikwad Shubham Yuvraj

Plan B Outcomes after Execution

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.

3. Aim of the Micro-Project :

a) To give detailed information of how to create stopwatch in android studio.


b) To learn and code in java in android studio.
c) To describe about the functions and syntax used in java for developing android applications.
d) To learn and give information about mobile application development.

4. Course outcome achieved :

a) Developed a stopwatch in android studio.


b) Used a stopwatch and ran it.

8
c) Learned the different syntax and function of the android studio.

5. Actual methodology followed :

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

7. Actual Resources Used :

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 develop a stopwatch in android studio.

 We learn that how to make the coding and programming.

 We learn that how to edit the program and how to do the presentation for the project.

 We learn that how to make the report for project.

 This all things we learn from the project.

9. Application of this Micro-Project:-

 To develop a stopwatch in android studio.

15

You might also like