MAD - Stopwatch in Android Studio Project
MAD - Stopwatch in Android Studio Project
Micro-Project Report
On
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
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
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
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
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
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.
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:-
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:-
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.
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.
(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:-
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:
14
• Then if we press Stop, the timer will be stopped 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 edit the program and how to do the presentation for the project.
17