0% found this document useful (0 votes)
12 views5 pages

Mad 1.3

Uploaded by

Sameer Ahuja
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)
12 views5 pages

Mad 1.3

Uploaded by

Sameer Ahuja
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/ 5

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

Experiment 1.3
Student Name:Sameer Ahuja UID: 21 BCS1791
Branch: BE-CSE Section/Group: CC-602-A
th
Semester: 6 Date of Performance: 30-01-2024
Subject Name: Mobile Application Development
Subject Code: 21CSP-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
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

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: 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:
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

You might also like