The document provides information about the Android mobile operating system architecture and development environment. It discusses the key components of Android including the Linux kernel, libraries, Android runtime environment with the Dalvik virtual machine, and the application framework layer. It also outlines some of the features and versions of the Android OS.
Introduction to the CS8662 Mobile Application Development Laboratory, regulation for 2017, and practical examination details.
Vision and mission statements of the institute and the Information Technology department emphasizing research, innovation, and total quality education.
Educational objectives and outcomes of the CS8662 program including expertise in IT skills, problem-solving, design solutions, and individual/team collaboration.
Objectives of the mobile application lab, experiments list, and expected outcomes upon completion, emphasizing practical application of learned concepts.
Mapping of Course Outcomes (COs) with Program Outcomes (POs) and Program Specific Outcomes (PSOs) along with correlation levels.
Index of experiments, rubrics for assessment criteria including code logic, layout design, and record submission.
Internal assessment details including lab work percentage, model exam contribution, and action plans for CO attainment.
Basics of the Android operating system, architecture including Linux kernel, libraries, and Android runtime encompassing essential components.
Features of Android OS such as connectivity, messaging, multi-touch, and the various Android versions from 1.5 Cupcake to newer versions.
Introduction to Android Studio IDE, its features, and history as the primary tool for Android development replacing Eclipse ADT.
Step-by-step procedure for creating a new Android project in Android Studio, setting up necessary configurations.
Aim, procedure, and expected output for developing an Android application utilizing GUI components, fonts, and colors.
Aim and detailed steps for creating an Android application that incorporates layout managers and event listeners.
Aim and procedure for developing an Android application to display basic graphical primitives with output expectations.
Aim and stepwise instructions for creating an Android application that utilizes a database for data persistence.
Aim and detailed step-by-step instructions for developing an Android application that implements a notification manager.
Focus on creating an Android app that uses multithreading, including detailed procedure and expected outcomes.
Aim and the process for developing an Android app that uses GPS location services, along with sample output.
Steps to create an Android application that can write data to an SD Card, concluding with expected results.
Procedure for developing an Android app that triggers alerts when receiving a message, including expected output.
Aim and stepwise procedure for building an Android application that utilizes RSS feeds with outputs.
Creating an Android application that sends an email, including the stepwise procedure and sample output.
General conclusions from the laboratory manual and the importance of the activities included within.
DEPARTMENT OF INFORMATIONTECHNOLOGY
LABORATORY MANUAL CUM OBSERVATION AND RECORD
CS8662 – MOBILE APPLICATION DEVELOPMENT
LABORATORY
(Regulation 2017)
2019 - 2020 EVEN
2.
NAME : __________________________________________
REGISTERNUMBER : ________________ ROLL NO : ___________
BRANCH : INFORMATION TECHNOLOGY
YEAR / SEMESTER : 3rd
YEAR / 6th
SEMESTER
Bonafide Record of work done in the CS8662 – Mobile Application
Development Laboratory of Kamaraj College of Engineering and
Technology, Madurai, during the year 2019 – 2020 EVEN.
Staff In-charge Head of the Department
Submitted for the Practical Examination held on _______________ at
Kamaraj College of Engineering and Technology, Madurai.
Internal Examiner External Examiner
3.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
1 | P a g e
VISION OF THE INSTITUTE
TO MAKE THE INSTITUTION UNIQUE OF ITS KIND IN THE FIELD OF RESEARCH
AND DEVELOPMENT ACTIVITIES IN THIS PART OF THE WORLD
MISSION OF THE INSTITUTE
TO IMPART HIGHLY INNOVATIVE AND TECHNICAL KNOWLEDGE TO THE
URBAN AND RURAL STUDENT FOLKS THROUGH “TOTAL
QUALITY EDUCATION”
VISION OF THE DEPARTMENT
TO MAKE THE DEPARTMENT OF INFORMATION TECHNOLOGY THE
UNIQUE OF ITS KIND IN THE FIELD OF RESEARCH AND DEVELOPMENT
ACTIVITIES IN THIS PART OF WORLD
MISSION OF THE DEPARTMENT
TO IMPART HIGHLY INNOVATIVE AND TECHNICAL KNOWLEDGE IN THE
FIELD OF INFORMATION TECHNOLOGY TO THE URBAN AND
UNREACHABLE RURAL STUDENT FOLKS THROUGH TOTAL QUALITY
EDUCATION
4.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
2 | P a g e
PROGRAM EDUCATION OBJECTIVES [PEOs]
1. Graduates of the programme will exhibit expertise in technical knowledge by applying
distinctive skills in various fields of Information Technology
2. Graduates will become pioneers in the field of Information Technology by working
collaboratively and providing solutions to meet societal needs through persistent learning
3. Graduates will be able to adopt innovative practices and contribute towards research and
technological development in the field of Information Technology through Total Quality
Education
PROGRAM OUTCOMES (POs)
Engineering Graduates will be able to:
1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering
fundamentals, and an engineering specialization to the solution of complex engineering
problems.
2. Problem analysis: Identify, formulate, review research literature, and analyse complex
engineering problems reaching substantiated conclusions using first principles of mathematics,
natural sciences, and engineering sciences.
3. Design/development of solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the cultural, societal, and environmental
considerations.
4. Conduct investigations of complex problems: Use research-based knowledge and research
methods including design of experiments, analysis and interpretation of data, and synthesis of
the information to provide valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modelling to complex engineering activities
with an understanding of the limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to
the professional engineering practice.
7. Environment and sustainability: Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of, and need
for sustainable development.
5.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
3 | P a g e
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader
in diverse teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write
effective reports and design documentation, make effective presentations, and give and receive
clear instructions.
11. Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and
leader in a team, to manage projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.
PROGRAM SPECIFIC OUTCOMES (PSOs)
Engineering Graduates will be able to:
1. Design an algorithm, process or component to address its real time needs in the field of
Information Technology through analytical skills.
2. Ability to adopt the evolutionary changes in computing and pursue a career in IT and IT
enabled industries.
6.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
4 | P a g e
SYLLABUS
CS8662 MOBILE APPLICATION DEVELOPMENT LABORATORY L T P C
0 0 4 2
OBJECTIVES:
To understand the components and structure of mobile application development frameworks
for Android and windows OS based mobiles.
To understand how to work with various mobile application development frameworks.
To learn the basic and important design concepts and issues of development of mobile
applications.
To understand the capabilities and limitations of mobile devices.
LIST OF EXPERIMENTS
1. Develop an application that uses GUI components, Font and Colours
2. Develop an application that uses Layout Managers and event listeners.
3. Write an application that draws basic graphical primitives on the screen.
4. Develop an application that makes use of databases.
5. Develop an application that makes use of Notification Manager
6. Implement an application that uses Multi-threading
7. Develop a native application that uses GPS location information
8. Implement an application that writes data to the SD card.
9. Implement an application that creates an alert upon receiving a message
10. Write a mobile application that makes use of RSS feed
11. Develop a mobile application to send an email.
12. Develop a Mobile application for simple needs (Mini Project)
TOTAL: 60 PERIODS
OUTCOMES:
Upon Completion of the course, the students will be able to:
Develop mobile applications using GUI and Layouts.
Develop mobile applications using Event Listener.
Develop mobile applications using Databases.
Develop mobile applications using RSS Feed, Internal/External Storage, SMS, Multi-threading
and GPS.
Analyze and discover own mobile app for simple needs.
REFERENCES:
1. Build Your Own Security Lab, Michael Gregg, Wiley India
LIST OF EQUIPMENT FOR A BATCH OF 30 STUDENTS
Standalone desktops with Windows or Android or iOS or Equivalent Mobile Application Development
Tools with appropriate emulators and debuggers - 30 Nos.
7.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
5 | P a g e
LIST OF EXPERIMENTS
1. Develop an application that uses GUI components, Font and Colours
2. Develop an application that uses Layout Managers and event listeners.
3. Write an application that draws basic graphical primitives on the screen.
4. Develop an application that makes use of databases.
5. Develop an application that makes use of Notification Manager
6. Implement an application that uses Multi-threading
7. Develop a native application that uses GPS location information
8. Implement an application that writes data to the SD card.
9. Implement an application that creates an alert upon receiving a message
10. Write a mobile application that makes use of RSS feed
11. Develop a mobile application to send an email.
12. Develop a Mobile application for simple needs (Mini Project)
8.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
6 | P a g e
COURSE OUTCOME AND PROGRAM OUTCOME MAPPING
Course Outcomes (COs):
Course
No.
Course Outcome
(Student should be able to)
K/ Bloom’s
Taxonomy
Level
R17C322.1
Build various mobile applications related to GUI components, Font and
Colours using Layout managers and Event Listeners
K3 - Apply
R17C322.2 Make use of database concepts for data related mobile applications K3 - Apply
R17C322.3
Develop mobile applications using Internal & External Storage, SMS
Notification, Multithreading, and GPS.
K3 - Apply
R17C322.4
Model the mobile application using RSS Feed, Alert upon receiving a
message and send an E-Mail
K3 - Apply
R17C322.5 Develop Mobile App for simple real time needs K3 - Apply
Mapping of Course Outcomes with POs and PSOs:
Course
Outcomes
Program outcomes
Program
Specific
outcomes
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
R17C322.1 L - L - M - - - L - - L L L
R17C322.2 L - L - M - - - L - - L L L
R17C322.3 L - L - M - - - L - - L L L
R17C322.4 L - L - M - - - L - - L L L
R17C322.5 M M M L M M - - M L - M M M
R17C322 L M L L M M - - L L - L L L
Correlation Levels: L: Slight M: Moderate H: Substantial
Target Value = 80% of Marks
Internal Assessment
S. No. Assessment Tool ( Rubrics) Percentage of Contribution (%)
1 Laboratory Work 75
2 Model Exam 25
9.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
7 | P a g e
INDEX
Ex.
No.
Date Application Name Page No. Marks Signature
1 GUI components, Font and Colours
2 Layout Managers and Event Listeners
3 Graphical Primitives
4 Persistent Data Storage
5 Notification Manager
6 GPS location
7 Multithreading
8 SD Card Manager
9 Alert upon Receiving Message
10 RSS Feed
11 E-Mail Notification
12 Mini Project
10.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
8 | P a g e
RUBRICS FOR ASSESSMENT
Category
Marks
allotted
Code Logic
[Viva]
Explains
the basic
concept and
logic of the
code
correctly
[25]
Explains the
logic and
basic concept
correctly but
lacks in
presenting it
[22]
Explains the
basic concept
correctly but
lacks in
understanding
the logic
[19]
Explains the
basic concept
but fails to
give detail
description
[16]
Explanation
of basic
concepts and
logic is not
more
appropriate
[13]
25
Layout
Design
Clear &
Appropriate
features
[25]
Appropriate
features [20]
Clear & Less
features [15]
Less features
[10]
No proper
layout design
[5]
25
Code
Design
Code that
satisfies the
entire logic
[25]
Code
deigned with
some syntax
errors [20]
Code designed
with some logic
mistakes [15]
Code designed
with wrong
logic [10]
Wrong logic
& no
programming
structure [5]
25
Record
Submission
Submission
on date [25]
1 day delay
[22]
2 days delay
[19]
3 days delay
[16]
4 days delay
[13]
25
Total: 100 Marks
11.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
9 | P a g e
CO ATTAINMENT - INTERNAL ASSESSMENT
Laboratory Mark
Ex.
No.
Exercises COs
CodeLogic[25]
[Viva]
LayoutDesign
[25]
CodeDesign[25]
Record
Submission[25]
Total[100]
Marksobtained
forCOs(100)
TargetAttained
(Y/N)
1
GUI components, Font
and Colours
R17C322.12
Layout Managers and
Event Listeners
3 Graphical Primitives
4 Persistent Data Storage R17C322.2
5 Notification Manager
R17C322.3
6 GPS location
7 Multithreading
8 SD Card Manager
9
Alert upon Receiving
Message
R17C322.410 RSS Feed
11 E-Mail Notification
12 Mini Project R17C322.5
12.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
10 | P a g e
Model Exam
Q.No CO Number
Marks Total
Mark(100)
CO Attained?
[Y/N]Allotted Obtained
1.
2.
Internal Assessment = 75% of Laboratory Mark + 25% of Model Exam Mark
Internal
Assessment
Laboratory Mark
(75%)
Model Exam
(25%)
Total Mark
(100)
Target
Attained?
[Y/N]
Marks
Note:
If CO Attainment,
Y = Laboratory Mark (%) >= Target Value (%)
N = Laboratory Mark (%) < Target Value (%)
Action Plan:
If CO not attained,
For Regular Laboratory Session & Model Exam:
CO
Number
Reason for not
Attaining COs
Remedial Action
Plan
Remarks Signature
Staff In-Charge
13.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
1 | P a g e
INTRODUCTION
Android is a Linux based operating system it is designed primarily for touch screen
mobile devices such as smart phones and tablet computers. The android is a powerful
operating system and it supports large number of applications in Smartphones. These
applications are more comfortable and advanced for the users. The hardware that supports
android software is based on ARM architecture platform.
The android is an open source operating system. The android has got millions of apps
available that can help you managing your life one or other way and it is available low cost in
market at that reasons android is very popular.
The android development supports with the full java programming language. Even
other packages that are API and JSE are not supported. The first version 1.0 of android
development kit (SDK) was released in 2008
ANDROID ARCHITECTURE
The android is an operating system and is a stack of software components which is divided
into five sections and four main layers that is
Linux kernel
Libraries
Android runtime
LINUX KERNEL
The android uses the powerful Linux kernel and it supports wide range of hardware drivers.
The kernel is the heart of the operating system that manages input and output requests from
software. This provides basic system functionalities like process management, memory
management; device management like camera, keypad, and display etc., the kernel handles
all the things. The Linux is really good at networking and it is not necessary to interface it to
the peripheral hardware. The kernel itself does not interact directly with the user but rather
interacts with the shell and other programs as well as with the hard ware devices on the
system.
INTRODUCTION TO ANDROID OS
14.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
2 | P a g e
LIBRARIES
On top of a Linux kennel there is a set of libraries including open source web browser such as
webkit, library libc. These libraries are used to play and record audio and video. The SQLite
is a data base which is useful for storage and sharing of application data. The SSL libraries
are responsible for internet security etc.
ANDROID RUNTIME
The android runtime provides a key component called Dalvik Virtual Machine which is a
kind of java virtual machine. It is specially designed and optimized for android. The Dalvik
VM is the process virtual machine in the android operating system. It is software that runs
apps on android devices.
The Dalvik VM makes use of Linux core features like memory management and
multithreading which is in a java language. The Dalvik VM enables every android application
to run its own process. The Dalvik VM executes the files in the .dex format.
APPLICATION FRAME WORK
The application frame work layer provides many higher level services to applications such as
windows manager, view system, package manager, resource manager etc. The application
developers are allowed to make use of these services in their application.
15.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
3 | P a g e
APPLICATIONS AND FEATURES
The android applications are at the top layer and we will write our application and install on
this layer. Example of such applications is contacts, books, browsers, services etc.
FEATURES
Head set layout
Storage
Connectivity: GSM/EDGE, IDEN, CDMA, Bluetooth, WI-FI, EDGE,3G,NFC, LTE,GPS.
Messaging: SMS, MMS, C2DM (could to device messaging), GCM (Google could
messaging)
Multilanguage support
Multi touch
Video calling
Screen capture
External storage
Streaming media support
Optimized graphics
ANDROID VERSIONS
Android 1.5: Android Cupcake
Android 1.6: Android Donut
Android 2.0: Android Eclair
Android 2.2: Android Froyo
Android 2.3: Android Gingerbread
Android 3.0: Android Honeycomb
Android 4.0: Android Ice Cream Sandwich
Android 4.1 to 4.3.1: Android Jelly Bean
Android 4.4 to 4.4.4: Android KitKat
Android 5.0 to 5.1.1: Android Lollipop
Android 6.0 to 6.0.1: Android Marshmallow
Android 7.0 to 7.1: Android Nougat
Android 8.0 to Android 8.1: Android Oreo
Android 9.0: Android Pie
16.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
4 | P a g e
Android Studio is the official integrated development environment (IDE)
for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and
designed specifically for Android development. It is available for download
on Windows, macOS and Linux based operating systems. It is a replacement for the Eclipse
Android Development Tools (ADT) as the primary IDE for native Android application
development.
Android Studio was announced on May 16, 2013 at the Google I/O conference. It was
in early access preview stage starting from version 0.1 in May 2013, then entered beta stage
starting from version 0.8 which was released in June 2014. The first stable build was released
in December 2014, starting from version 1.0.
Since May 7, 2019, Kotlin is Google’s preferred language for Android app
development. Still, other programming languages are supported by Android Studio, such as
Java and C++.
FEATURES
Gradle-based build support
Android-specific refactoring and quick fixes
Lint tools to catch performance, usability, version compatibility and other problems
ProGuard integration and app-signing capabilities
Template-based wizards to create common Android designs and components
A rich layout editor that allows users to drag-and-drop UI components, option
to preview layouts on multiple screen configurations[17]
Support for building Android Wear apps
Built-in support for Google Cloud Platform, enabling integration with Firebase Cloud
Messaging (Earlier 'Google Cloud Messaging') and Google App Engine[18]
Android Virtual Device (Emulator) to run and debug apps in the Android studio.
INTRODUCTION TO ANDROID STUDIO
17.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
5 | P a g e
PROCEDURE
Creating a New Project
Open Android Stdio and then click on File -> New -> New project.
Then type the Application name as “ex.no.1″ and click Next.
18.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
6 | P a g e
Then select the Minimum SDK as shown below and click Next.
Then select the Empty Activity and click Next.
19.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
7 | P a g e
Finally click Finish.
It will take some time to build and load the project.
After completion it will look as given below.
20.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
8 | P a g e
AIM
To develop a Simple Android Application that uses GUI components, Font and
Colours.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open res directory -> layout -> activity_main.xml and add the code.
Step 4: Open java -> MainActivity.java and add the code.
Step 5: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
Ex. No: 1 GUI Components, Font and Colours Pg. No:
21.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
9 | P a g e
SAMPLE OUTPUT
22.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
10 | P a g e
23.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
11 | P a g e
Ex. No: 2 Layout Managers & Event Listeners Pg. No:
AIM
To develop a Simple Android Application that uses Layout Managers and Event
Listeners.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open res directory -> layout -> activity_main.xml and add the code.
Step 4: Open java -> MainActivity.java and add the code.
Step 5: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
24.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
12 | P a g e
SAMPLE OUTPUT
25.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
13 | P a g e
26.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
14 | P a g e
Ex. No: 3 Graphical Primitives Pg. No:
AIM
To develop a Simple Android Application that draws basic Graphical Primitives on
the screen.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components (ImageView) to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open java -> MainActivity.java and add the code.
Step 4: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
27.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
15 | P a g e
SAMPLE OUTPUT
28.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
16 | P a g e
29.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
17 | P a g e
Ex. No: 4 Persistent Data Storage Pg. No:
AIM
To develop a Simple Android Application that makes use of Database.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Create two resource files (*.xml) and two activity files (*.java) named activity_ main
.xml & activity_main2.xml and MainActivity.java & Main2Activity.java.
Step 3: Open res directory -> layout -> activity_main.xml -> Click -> Design button at
bottom of the Android Studio. Put the necessary components for both resource files
(activity_main.xml, activity_main2.xml).
Step 4: Design (After the design part, the xml code will be generated automatically in the
layout file).
Step 5: Open Java ->MainActivity.java & MainActivity2.java and add the code.
Step 6: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
30.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
18 | P a g e
SAMPLE OUTPUT
31.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
19 | P a g e
32.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
20 | P a g e
Ex. No: 5 Notification Manager Pg. No:
AIM
To develop a Simple Android Application that makes use of Notification Manager.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open Java ->MainActivity.java and add the code.
Step 4: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
33.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
21 | P a g e
SAMPLE OUTPUT
34.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
22 | P a g e
35.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
23 | P a g e
Ex. No: 6 Multithreading Pg. No:
AIM
To develop an Android Application that implements Multithreading.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open your Android studio project folder (e.g. Project name: Multithreading)
-> Click app -> src -> main -> res -> drawable -> add *.png file.
Step 4: Open Java ->MainActivity.java and add the code.
Step 5: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
36.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
24 | P a g e
SAMPLE OUTPUT
37.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
25 | P a g e
38.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
26 | P a g e
Ex. No: 7 GPS Location Pg. No:
AIM
To develop an Android application that uses GPS location information.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Create two resource files (*.xml) and two activity files (*.java) named activity_ main
.xml & activity_main2.xml and MainActivity.java & Main2Activity.java.
Step 3: Open res directory -> layout -> activity_main.xml -> Click -> Design button at
bottom of the Android Studio. Put the necessary components for both resource files
(activity_main.xml, activity_main2.xml).
Step 4: Design (After the design part, the xml code will be generated automatically in the
layout file).
Step 5: Open AndroidManifest.xml and add the code to provide access permission.
Step 6: Open Java ->MainActivity.java & MainActivity2.java and add the code.
Step 7: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
39.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
27 | P a g e
SAMPLE OUTPUT
40.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
28 | P a g e
41.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
29 | P a g e
Ex. No: 8 SD Card Manager Pg. No:
AIM
To develop an Android Application that writes data to the SD Card.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open AndroidManifest.xml and add the code to provide access permission.
Step 4: Open Java ->MainActivity.java and add the code.
Step 5: Connect the Android Mobile, run the project and the output will be displayed in
Emulator.
LAYOUT DESIGN
42.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
30 | P a g e
SAMPLE OUTPUT
43.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
31 | P a g e
44.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
32 | P a g e
Ex. No: 9 Alert upon Receiving Message Pg. No:
AIM
To develop an Android Application that creates an alert upon receiving a message.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 4: Open Java ->MainActivity.java and add the code.
Step 5: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
45.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
33 | P a g e
SAMPLE OUTPUT
46.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
34 | P a g e
47.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
35 | P a g e
Ex. No: 10 RSS Feed Pg. No:
AIM
To develop an Android Application that makes use of RSS Feed.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open AndroidManifest.xml and add the code to provide access permission.
Step 4: Open Java ->MainActivity.java and add the code.
Step 5: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
48.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
36 | P a g e
SAMPLE OUTPUT
49.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
37 | P a g e
50.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
38 | P a g e
Ex. No: 11 E-Mail Notification Pg. No:
AIM
To develop an Android Application to send an Email.
PROCEDURE
Step 1: Create an android project using android studio.
Step 2: Design
2.1. Open the actual Project folder (app) in Android Studio IDE.
2.2. Click res directory -> layout -> activity_main.xml -> Design.
2.3. Insert the GUI components to Design view in activity_main.xml.
2.4. Enter the id for each component.
Step 3: Open AndroidManifest.xml and add the code to provide access permission.
Step 4: Open res/values/styles.xml and add the code.
Step 5: Open Java ->MainActivity.java and add the code.
Step 6: Run the project and the output will be displayed in Emulator.
LAYOUT DESIGN
51.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
39 | P a g e
SAMPLE OUTPUT
52.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
40 | P a g e
53.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
41 | P a g e
54.
CS8662 – MobileApplication Development Laboratory 2019-2020 (EVEN)
42 | P a g e