A
Project Report On
☆..Stopwatch..☆
Maharashtra State Board of Technical Education, Malvan
For the Partial fulfilment of
Diploma in Computer Engineering
Submitted by :-
Chitrang Sawant (3214)
Jaydeep Konkar (3225)
Under the Guidance of
Mr. Shubham Haldankar
Department of Computer Engineering
Government Polytechnic, Malvan
A/P- Kumbharmath, Tal- Malvan, Dist- Sindhudurg .416606
(Academic Year 2023-2024)
INDEX
SR NO CONTENTS
1
Aim of the Micro-Project
2 Course Outcome
3 Proposed Methodology
5 Resources Required
6 Group Members
7 Action Plan
8 Rationale
9 Project Objectives
10 Project scope
11 Actual Methodology followed
12 Skill Development
13 Program code
14 Output
15 Conclusion
16 References
Plan - A
Title of Micro-Project
“Stopwatch”
Aims/Benefits of the MicroProject Aims:
• To create an Android App “Stopwatch”
Course Outcomes Addressed:
• Interpreted features of android operating system.
• Configure Android environment and development tools.
• Develop rich user interfaces by using layout and controls.
• Use user interface components for android application development.
Proposed Methodology
This report includes a Selecting the micro-project title “Stopwatch”. Group
discussion with subject teacher about micro-project content. Observe the
equipment which selected for the micro-project. Collected the required
information for Micro-project. Created a Android App “Stopwatch”.
Resources Required:
S.
Resources required Specifications
No.
1 Computer system Computer, RAM Minimum 2GB
2 Android studio Version 2023.2.1
3 Microsoft Word 2020
Team members:
Sr. Roll.
Name of Student
No. number
Chitrang Laxman Sawant
1 3214
2 3225 Jaydeep Maruti Konkar
Action Plan:
Name of
Planned Planned responsible
Sr.
Details of Activity Start Finish Team
No.
Date Date members
Identify the requirements
1 02/02/2024 04/02/2024 All members
of the project.
Design the structure of the
2 06/02/2024 08/02/2024 All members
project.
Develop the code 09/02/2024 14/02/2024 All members
3
Preparing the overview
16/02/2024 20/02/2024 All members
4 of the project
Coding / implementing
5 22/02/2024 27/02/2024 All members
programs
6 Modifying the code 01/03/2024 06/03/2024 All members
8 Preparing report 11/03/2024 17/03/2024 All members
The report submitted to the
9 22/03/2024 26/03/2024 All members
teacher.
PLAN-B
Micro-Project Report
Rationale:
A stopwatch is a handheld timepiece designed to measure the amount of time that elapses
between its activation and deactivation. A large digital version of a stopwatch designed
for viewing at a distance, as in a sports stadium, is called a stopwatch.
Project Objective:
1. Develop a stopwatch application for Android devices using Android Studio.
2. Create a user-friendly stopwatch with start, stop, and reset functions.
3. Enhance user experience with features like lap and split timing (optional).
Project Scope:
1. Core Stopwatch Functionality:
- Start, stop, and reset operations.
- Display time in hours, minutes, seconds, and milliseconds.
2. User Interface Design:
- Intuitive UI with buttons for operations.
- Responsive design for various screen sizes.
3. Accuracy and Precision:
- Minimize timing errors and interruptions.
4. Additional Features (Optional):
- Lap and split timing functionalities.
5. Settings and Customization:
- User preferences for time format.
6. Testing and Quality Assurance:
- Thorough testing for reliability.
- Error handling mechanisms.
7. Documentation and Deployment:
- Prepare user manuals.
- Deploy to Google Play Store or provide installation instructions.
Actual Methodology:
1. Planned the micro-project on ‘Stopwatch’ which includes under the guidance of
[Link].
2. Team research on needs of raw information and collect information
related to our micro-project by using internet and books.
3. Took the reference from other professional Websites.
4. After the research of one week, started implementing the collected
information in project
5. At last finalized the project and prepared report on Mobile Application
for Stopwatch
Skill developed:
• Team Working Strategy developed.
• Understand various concepts related to the Android programming
Project Code:
[Link]:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="[Link]
xmlns:tools="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#C0E7EC"
android:padding="16dp"
tools:context="[Link]">
<TextView
android:id="@+id/stopwatch"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Stopwatch"
android:textColor="@color/black"
android:textSize="50dp" />
<TextView
android:id="@+id/time_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="100dp"
android:background="@drawable/border"
android:textAppearance="@android:style/[Link]"
android:textColor="@color/black"
android:textSize="50dp" />
<Button
android:id="@+id/start_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="50dp"
android:onClick="onClickStart"
android:text="@string/start" />
<Button
android:id="@+id/stop_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="50dp"
android:onClick="onClickStop"
android:text="@string/stop" />
<Button
android:id="@+id/reset_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:layout_gravity="center_horizontal"
android:onClick="onClickReset"
android:text="@string/reset" />
</LinearLayout>
Java Code:
package [Link].stopwatch1;
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
public class MainActivity extends Activity
{
private int sec = 0;
private boolean is_running;
private boolean was_running;
@Override
protected void onCreate(Bundle savedInstanceState)
{
[Link](savedInstanceState);
setContentView([Link].activity_main);
if (savedInstanceState != null) {
sec = [Link]("seconds");
is_running = [Link]("running");
was_running = savedInstanceState .getBoolean("wasRunning");
}
running_Timer();
}
@Override
public void onSaveInstanceState(Bundle savedInstanceState)
{
[Link]("seconds", sec);
[Link]("running", is_running);
[Link]("wasRunning", was_running);
}
@Override
protected void onPause()
{
[Link]();
was_running = is_running;
is_running = false;
}
@Override
protected void onResume()
{
[Link]();
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([Link].time_view);
final Handler handle = new Handler();
[Link](new Runnable()
{
@Override
public void run()
{
int hrs = sec / 3600;
int mins = (sec % 3600) / 60;
int secs = sec % 60;
String time_t = String .format([Link](), " %d:%02d:%02d ",
hrs,mins, secs);
t_View.setText(time_t);
if (is_running)
{
sec++;
}
[Link](this, 1000);
}
});
}
}
[Link]:
<resources>
<string name="app_name">Stopwatch</string>
<string name="start"> Start </string>
<string name="reset"> Reset </string>
<string name="stop"> Stop </string>
</resources>
[Link]:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
android:shape="rectangle">
<stroke
android:width="2dp"
android:color="#932424"
/>
</shape>
Output:
Conclusion:
The project “Stopwatch” which can start the counting of time by using the button
start, stopwatch also have the button for reset and pause purpose. The project has
been implemented with the help of the Android Studio.
Reference:
• [Link]
• [Link]
• [Link]
• [Link]