0% found this document useful (0 votes)
4 views4 pages

Abhi MADLab1.33 Pages Deleted

The document outlines an experiment for a Computer Science and Engineering lab focused on creating an application using widgets in Android Studio. It details the aim, objectives, and step-by-step procedure for setting up a new project, adding a widget, and running the application. The experiment is intended for students to understand widget implementation in both Java and Kotlin languages.

Uploaded by

nsrinivasrao1945
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)
4 views4 pages

Abhi MADLab1.33 Pages Deleted

The document outlines an experiment for a Computer Science and Engineering lab focused on creating an application using widgets in Android Studio. It details the aim, objectives, and step-by-step procedure for setting up a new project, adding a widget, and running the application. The experiment is intended for students to understand widget implementation in both Java and Kotlin languages.

Uploaded by

nsrinivasrao1945
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/ 4

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

EXPERIMENT-1.3

Student Name: Abhishek Kumar UID: 21BCS10109


Branch: BE-CSE Section/Group: 701 - A
Semester: 6 Date of Performance:05 -02-2024
Subject Name: MAD Lab Subject Code: 21CSH-355

1. Aim:
Create Application by Using Widgets.

2. Objective:
To understand the concept of widgets and to implement the Widgets in Android Studio.

3. Procedure:
Step 1: Create a New Project
To create a new project in Android Studio please refer to How to Create/Start a New Project
in Android Studio. We are implementing it for both Java and Kotlin languages.

Step 2: Add the App Widget to the Project


Right-Click on the app, move the cursor to new, find the “Widget” option at the
end, select it.

Step 3: Install and Run the Code


Install and run the code on Android Virtual Device (AVD) or a personal device. Open the
widget section of the phone, lookup for a widget with the Application name, select it, bring it to
the home screen. Try changing the dimensions and we are done! During this selecting and
deploying process, a few extra files are generated and minor changes are made to existing files
as well. No programming is required for generating a basic widget and is only required if an
application is to be embedded inside the widget, as discussed in the later parts of the article. Let
us now explain the newly generated files the changes make to the existing ones, one by one.
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Step 4: Adding Widget to the project


DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Step 4: Write code in file


Make changes in newappwidget.java, new_app_widget.xml, dimens.xml and
new_app_widget_info.xml.
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

4. Output:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy