100% found this document useful (4 votes)
3K views17 pages

MAD - Stopwatch in Android Studio Project

This document describes a micro-project to develop a stopwatch application in Android Studio. The project aims to create an app with a text view to display elapsed time and buttons to start, stop, and reset the stopwatch. The proposed methodology includes using Java programming, XML, and Android Studio. A team of 4 students planned to gather requirements, analyze the project, design the app, code it, test it, deploy the module, and prepare outputs and a report. The resources included a PC, Android Studio, and the internet.

Uploaded by

Rahul B. Fere
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (4 votes)
3K views17 pages

MAD - Stopwatch in Android Studio Project

This document describes a micro-project to develop a stopwatch application in Android Studio. The project aims to create an app with a text view to display elapsed time and buttons to start, stop, and reset the stopwatch. The proposed methodology includes using Java programming, XML, and Android Studio. A team of 4 students planned to gather requirements, analyze the project, design the app, code it, test it, deploy the module, and prepare outputs and a report. The resources included a PC, Android Studio, and the internet.

Uploaded by

Rahul B. Fere
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Maharashtra State Board of Technical Education, Mumbai

Micro-Project Report
On

“Stopwatch in android studio”

Submitted By

Miss. Kumbhar V. S.
Miss. Joshi S. S.
Miss. Shinde V. B.
Miss. Kedase S. K.
Subject Teacher

Mr. Sagare S. V.
In Fulfillment of
Diploma In Computer Engineering

2020-21

1
Maharashtra State Board of Technical Education, Mumbai

J.S.P.M. Group of Institute’s


Swami Vivekanand Institute of Polytechnic

Computer Engineering Department

Certificate
This is to certify that, Kumbhar Vaishnavi S., Joshi Shivani S., Shinde Vaishnavi B.,
Kedase Swati K.
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.

Kumbhar Vaishnavi S.

Joshi Shivani S.
Shinde Vaishnavi B.
Kedaase Swati K.

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
6
1 4. Proposed methodology
6
5. Action plan
7
6. Resources used
7
7. Name of team members
8
Part B – Outcomes after execution
1. Rationale
9
2. Brief description
9
3. Aim of the micro project
9
4. Course outcome achieved
10
2 5. Actual methodology followed
10
6. Action plan
13
7. Actual resources used
13
8. Output

14
9. Skill Developed / Learning outcome of this
Micro-Project: 16

4
Part A Plan

Develop a 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. Aims of the micro project:-


In this article, an Android app is created to display a basic Stopwatch. The
layout for Stopwatch includes:
A TextView: showing how much time has passed Three
Buttons:
1. Start: To start the stopwatch
2. Stop: To stop the stopwatch
3. Reset: To reset the stopwatch to 00:00:00

5
3. Course Outcomes Adderssed:-

1. It will have a display that will show the time on it. For the display, wehave used TextView
2. Then we will have three options, using the User Interface components that are Buttons. Using
button we have added the following three options

a. Start Button: The start is the activation for the Stopwatch. It will activate the Stopwatch
as soon as pressed.

b. Stop Button: The Stop button will be used to deactivate the stopwatch. As soon as we
click the stop button the stopwatch will be deactivated. After getting deactivated it will show the
total time elapsed between the activation and deactivation of the watch.

c. Reset Button: The reset button is used to set the stopwatch to 00:00:00 again. Stopwatch
needs to be reset once its use is done.

4. Proposed Methodology:-

1. Java Programming: Java Programming plays an important role in Android app


development as it makes the application function and manages it.
2. XML: Extensible Markup Language is useful as it helps us create the user interface for
the application. Knowing the basics of it will help you as
3. Android Studio: Android Studio is the platform that we will use for the development of
our project. This makes it important for the users to know about the IDE they work on.
4. Kotlin (Optional): Kotlin is an optional choice for you. It can be used in place of Java for
app development.

6
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
18.02.2021 21.02.2021 Kumbhar
3. Designing vaishnavi
3:00 to 5:00 3:00 to 5:00
22.02.2021 04.03.2021
4. Implement of Coding Shinde
3:00 to 5:00 3:00 to 5:00
vaishnavi
05.03.2021 15.03.2021
5. Testing of Project
3:00 to 5:00 3:00 to 5:00 Joshi shivani
18.03.2021 25.3.2021
6. Deployment of Module
3:00 to 5:00 3:00 to 5:00 Kedase swati
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:-

Sr.no Name of Specification Quantity Remark


resources
1. Pc Processor Intel core 1
2. Software Android studio 1

3. Internet Google 1

7
7. Name of Team Members:-
1. Kumbhar Vaishnavi shivanand
2. Joshi Shivani Suresh
3. Shinde Vaishnavi
4. Kedase Swati

8
Part B- Outcomes after Execution

1. Rationale:-
Develop 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.

3. Aims of the micro project:-

In this article, an Android app is created to display a basic Stopwatch. The


layout for Stopwatch includes:
A TextView: showing how much time has passed
Three Buttons:
1. Start: To start the stopwatch
2. Stop: To stop the stopwatch
3. Reset: To reset the stopwatch to 00:00:00

9
4. Course Outcomes Achieved:-

1. It will have a display that will show the time on it. For the display, wehave used TextView

2. Then we will have three options, using the User Interface components that are Buttons. Using
button we have added the following three options

a. Start Button: The start is the activation for the Stopwatch. It will activate the Stopwatch
as soon as pressed.

b. Stop Button: The Stop button will be used to deactivate the stopwatch. As soon as we
click the stop button the stopwatch will be deactivated. After getting deactivated it will show the
total time elapsed between the activation and deactivation of the watch.

c. Reset Button: The reset button is used to set the stopwatch to 00:00:00 again. Stopwatch
needs to be reset once its use is done.

5,Actual Methodology Followed:-

(Program code used for conduction micro project if any with out put)

package com.ProjectGurukul.stopwatch;
import android.os.Bundle; import
android.app.Activity; import
android.os.Handler; import
android.view.View; import java.util.Locale;
import android.widget.TextView; public
class MainActivity extends Activity {
private int sec = 0; private
boolean is_running; private
boolean was_running;
@Override
protected void onCreate(Bundle savedInstanceState)
{ super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); if (savedInstanceState
!= null) { sec = savedInstanceState.getInt("seconds");
is_running = savedInstanceState.getBoolean("running");
was_running = savedInstanceState .getBoolean("wasRunning");
}
running_Timer();
}

10
@Override
public void onSaveInstanceState(
Bundle savedInstanceState)
{
savedInstanceState.putInt("seconds", sec); savedInstanceState.putBoolean("running",
is_running); savedInstanceState.putBoolean("wasRunning", was_running);
}
@Override protected
void onPause()
{ super.onPause();
was_running = is_running;
is_running = false;
}
@Override
protected void onResume()
{ super.onResume();
if (was_running) {
is_running = true;
}}
public void onClickStart(View view)
{
is_running = true;
}
public void onClickStop(View view)
{
is_running = false;
}
public void onClickReset(View view)
{ is_running =
false; sec = 0; }
private void running_Timer()
{
final TextView t_View = (TextView)findViewById(R.id.time_view);
final Handler handle = new Handler(); handle.post(new
Runnable() {
@Override public
void run()
{
int hrs = sec / 3600; int mins
= (sec % 3600) / 60; int secs
= sec % 60;
String time_t = String .format(Locale.getDefault(), " %d:%02d:%02d ", hrs,mins, secs);
t_View.setText(time_t); if (is_running) { sec++; }
handle.postDelayed(this, 1000);
}

11
});
}
}

12
6.Resources used:-

Sr.no Name of resources Specification Quantity Remark

8 Pc I3processor,4Gb 1
,500GB
9 Software Android studio 1

1 Internet Google 1

7. 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
18.02.2021 21.02.2021 Kumbhar
3. Designing vaishnavi
3:00 to 5:00 3:00 to 5:00
22.02.2021 04.03.2021
4. Implement of Coding Shinde
3:00 to 5:00 3:00 to 5:00
vaishnavi
05.03.2021 15.03.2021
5. Testing of Project
3:00 to 5:00 3:00 to 5:00 Joshi shivani
18.03.2021 25.3.2021
6. Deployment of Module
3:00 to 5:00 3:00 to 5:00 Kedase swati
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

13
8. Output of the Micro-Project:-
Upon running the project, we will get the following screen:

It has the following functioning: Start, Stop and Reset Buttons

8. Once we start, the watch will be activated:

14
• Then if we press Stop, the timer will be stopped as follows:

• We can reset the timer as follows:

15
16
9. Skill Developed / Learning outcome of this Micro-Project:-

• We learn that how to make the project of the menu driven programming in android ide

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.

17

You might also like