Android ICP7 - pondurivenkatesh9/WEB GitHub Wiki

Name : Venkatesh Ponduri

ID : 23

Source Code : https://github.com/pondurivenkatesh9/WEB/tree/master/ANDROID/ICP7


In Class Programming:

Calendar View

1. Add calendar view to one of the Activities in existing projects.

2. Display current date

3. when user clicks on any of the dates then the date should be displayed.

4. Create event.

5. Generate signed APK for the source code.


1. Add calendar view to one of the Activities in existing projects.

To achieve this task we are adding calendar view to a calendar display application. In Calendar display application we will be shown calendar application which is present in the android system. For this application we are adding calendar view and the home page is as shown below.

As soon as we click on calendar view we are directed to calendar activity where we can see Text view of date, create event button and calendar view. The output is shown below.

2. Display current date.

As soon the page loads the date is set to current date by using android calendar time.

3. when user clicks on any of the dates then the date should be displayed.

When we click on the other date on the calendar the text view of date should change to the date we clicked on. The code snippet for accomplishing this task is shown below.

The output of date change is shown below.

4. Create event.

On clicking the CREATE EVENT button we are directed to a page where we can fill all the details necessary to create event.Then by clicking on save button the event is saved in the calendar. By default some values are stored in the event creation requirements. The code snippet for achieving this is shown below.

The output for the same is shown below.

Now the event is saved to calendar as shown below.

5. Generate signed APK for the source code.

Steps involved in creating signed APK is as follows:

SelectBuild → Generate Signed APK(Android Packaging Kit)from your Android studio

ChooseCreate new key storeto store your application

Mention all the details and Give File name for key store Path

Clock on next and finish. Then the signed APK is generated and notification is shown as shown in below figure