0% found this document useful (0 votes)
22 views7 pages

Sakshi Hon

The document describes a project to develop a mobile calendar application using Android Studio. It includes requirements, code snippets, and screenshots of the application. Upon selecting a date from the calendar view, a toast message displays the selected date. The application provides basic calendar functionality as a foundation for future enhancements.

Uploaded by

Sakshi Hon
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)
22 views7 pages

Sakshi Hon

The document describes a project to develop a mobile calendar application using Android Studio. It includes requirements, code snippets, and screenshots of the application. Upon selecting a date from the calendar view, a toast message displays the selected date. The application provides basic calendar functionality as a foundation for future enhancements.

Uploaded by

Sakshi Hon
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/ 7

A

PROJECT REPORT

ON

“Calendar”

DIPLOMA IN COMPUTER ENGINEERING


Submitted By:
Miss. Hon Sakshi Santosh (33)

Under the guidance of


Mr. V.G.Lachake

DEPARTMENT OF COMPUTER ENGINEERING SANJIVANI RURAL


EDUCATION SOCIETY’S SANJIVANI K.B.P. POLYTECHNIC,
KOPARGAON-423603
2024

Mr. V.G.Lachake MR.G.N.JORVEKAR


(Subject Teacher) (H.O.D)

1
SANJIVANI K. B. P. POLYTECHNIC, KOPARGAON

Department of Computer Technology

CERTIFICATE

This is certify that the project work entitled

“Calendar”
Submitted By-
Miss. Hon Sakshi Santosh (33)

Is a Bonafide work carried out Mr. Bhavesh Vijay Bhatkudav under the supervision of Prof.
V.G.Lachake and it is submitted towards the partialfulfillment of the requirement of
MSBTE, Mumbai for the award of Diploma in Computer Technology

Mr. V.G.Lachake MR. G.N.JORVEKAR


(Subject Teacher) (H.O.D)

Date: / /2024 Place: Kopargaon

2
 Problem Statement:

Develop a mobile calendar application using Android Studio that allows users to view
and select dates from a calendar view. Upon selecting a date, display a toast message
showing the selected date in the format "Day/Month/Year." Additionally, ensure that the
application's UI is intuitive and responsive, providing a seamless experience for users
interacting with the calendar view.

 Hardware Requirements
 RAM- 16 GB
 Processor – Intel Core i5 or higher
 Disk space – Minimum 4GB

 Software Requirements
 Operating system – Windows 10
 Android Studio

3
CODE:

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>


<RelativeLayout 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"
tools:context=".MainActivity">

<CalendarView
android:id="@+id/calendarView"
android:layout_width="match_parent"
android:layout_height="match_parent" />

</RelativeLayout>

MainActivity.java:

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.CalendarView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

CalendarView calendarView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

calendarView = findViewById(R.id.calendarView);
4
calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener()
{
@Override
public void onSelectedDayChange(CalendarView view, int year, int month, int
dayOfMonth) {
String date = dayOfMonth + "/" + (month + 1) + "/" + year;
Toast.makeText(MainActivity.this, "Selected Date: " + date,
Toast.LENGTH_SHORT).show();
}
});
}
}

5
Output:

6
Conclusion:

In conclusion, the developed mobile calendar application using Android Studio


successfully provides users with the functionality to view and select dates from a
calendar view. The application's main activity (`MainActivity.java`) utilizes the
`CalendarView` widget to allow users to interact with the calendar easily. Upon selecting
a date, a toast message displays the selected date in the format "Day/Month/Year,"
enhancing user experience and usability. The application demonstrates basic calendar
functionality and serves as a foundation for further enhancements, such as adding event
creation, reminders, and syncing features in future iterations.

 Reference
 www.google.com
 www.javtpoint.com

You might also like