0% found this document useful (0 votes)
44 views11 pages

Mad Finalproject

The document is a project report on the development of an Android application called 'Stopwatch' for a diploma in Computer Engineering. It outlines the project's aims, objectives, methodology, resources required, and includes the program code and design specifications. The project aims to create a user-friendly stopwatch application with essential features like start, stop, and reset functionalities.
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
0% found this document useful (0 votes)
44 views11 pages

Mad Finalproject

The document is a project report on the development of an Android application called 'Stopwatch' for a diploma in Computer Engineering. It outlines the project's aims, objectives, methodology, resources required, and includes the program code and design specifications. The project aims to create a user-friendly stopwatch application with essential features like start, stop, and reset functionalities.
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/ 11

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
Smt.K.C.Wavhale.
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:
Xml.code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#C0E7EC"
android:padding="16dp"
tools:context="com.stopwatch.MainActivity">

<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/TextAppearance.Large"
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 com.example.stopwatch1;

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();
}
@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);
}
});
}
}

Resource.xml:
<resources>
<string name="app_name">Stopwatch</string>
<string name="start"> Start </string>
<string name="reset"> Reset </string>
<string name="stop"> Stop </string>
</resources>

String.xml:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
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:
• https://projectgurukul.org/android-project-stopwatch/
• https://developer.android.com
• https://www.codingninjas.com
• https://www.google.com

You might also like