0% found this document useful (0 votes)
221 views

Capital University of Science and Technology Islamabad: Lab Manual For Mobile Application Development

This document provides an introduction to Android Studio, the integrated development environment for building Android apps. It discusses the history of Android from its initial release in 2007 through its most recent versions. It outlines the objectives, tools, and concepts that will be covered in the lab, including setting up development environments, building user interfaces, and accessing device features like the camera. The document serves as an overview for the mobile app development course and lab.

Uploaded by

Mesum
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)
221 views

Capital University of Science and Technology Islamabad: Lab Manual For Mobile Application Development

This document provides an introduction to Android Studio, the integrated development environment for building Android apps. It discusses the history of Android from its initial release in 2007 through its most recent versions. It outlines the objectives, tools, and concepts that will be covered in the lab, including setting up development environments, building user interfaces, and accessing device features like the camera. The document serves as an overview for the mobile app development course and lab.

Uploaded by

Mesum
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/ 11

Capital University of Science and Technology

Islamabad

Lab Manual for Mobile Application Development


Lab-1
Introduction to Android Studio

1
Contents
1. Introduction .......................................................................................................................................... 3
2. History of Android ................................................................................................................................. 3
2.2. ANDROID PLATFORM VERSIONS ........................................................................................................ 5
3. Activity Time boxing .............................................................................................................................. 6
4. Objectives of the experiment ............................................................................................................... 6
5. Tools ...................................................................................................................................................... 6
6. Concept Map ......................................................................................................................................... 6
7. Homework before Lab .......................................................................................................................... 7
8. Walk through Task ................................................................................................................................ 7
8.1. System Requirements ................................................................................................................... 7
8.2. Installing the Java Development Kit (JDK) ..................................................................................... 7
8.2.1. Windows JDK Installation ...................................................................................................... 7
8.3. Installing Android Studio ............................................................................................................... 8
9. Practice Tasks ........................................................................................................................................ 1
10. Evaluation criteria ............................................................................................................................. 1

2
1. Introduction

The goal of this course is to teach the skills necessary to develop Android based applications
using the Android Studio Integrated Development Environment (IDE) and the Android Software
Development Kit (SDK).
Beginning with the basics, this course provides an outline of the steps necessary to set up an
Android development and testing environment. An overview of Android Studio is included
covering areas such as tool windows, the code editor and the Designer tool. An introduction to
the architecture of Android is followed by an in-depth look at the design of Android applications
and user interfaces using the Android Studio environment. More advanced topics such as
database management, content providers and intents are also covered, as are touch screen
handling, camera access.
Lab manuals of this course also cover advanced features of Android Studio such as Gradle build
configuration and the implementation of build variants to target multiple Android device types
from a single project code base.
Assuming you already have some Java programming experience, are ready to download
Android Studio and the Android SDK, have access to a Windows, Mac or Linux system and ideas
for some apps to develop, you are ready to get started.

2. History of Android
The Android is a Linux Based Operating System by GOOGLE which provide a rich
application Framework and help in developing interactive applications. The OS first OS
version was introduced in 2007.
2.1. DETAILED ABOUT ANDROID VERSIONS
Alpha – In this( Android 1.0) was the first versions of Android operating System by Google. It
has basic functionality with a simple browser and other Google apps like mail, Maps and
YouTube.
Beta – Later on with Android 1.1 few more functionality added, the API changes from Level
1 in Android 1.0 to Level 2. It supports attachment with MMS.
Cupcake – Cupcake was Android second version with new features as well as the Android
framework API updated. It was Android 1.5 with on Screen Keyboard , Bluetooth and
Updated UI for applications.
Donut – It was Android 1.6 nicknamed as DONUT. It added support for CDMA , additional
3
screen sizes, talk to speech engine and battery indicator.
Eclair – Android 2.0-2.1 as like other versions this also come up with a nickname as ECLAIR
and lot more functions & features. It come up with Bluetooth 2.1 , live wallpaper, HTML 5
support, ability to search sms & mms, flash support, digital zoom and more camera features
Froyo – Android version 2.2-2.2.3 introduced with USB tethering & WiFi hotspot functionality
and apps can now be installed on memory card. Support Adobe flash, increased speed and
performance of applications with new features.
Gingerbread – Gingerbread (Android 2.3-2.3.7) introduced with updated User Interface which
provide more ease to use. Features are like sensors, multiple cameras(Front & back), virtual
keyboard, better text suggestion, voice input capability and press hold copy paste capability.
Honeycomb – This Android platform Honeycomb was designed for large screens like tablets
so interface elements like virtual keyboard optimized for bigger screen. Home screen is
optimized, tabs are introduced in browser with additional incognito mode and video chat &
Gtalk is supported.
Ice Cream Sandwich –Ice Cream sandwich come in 2011 bringing all new look. It gives more
ease to user like user can quickly swipe to close the apps, new gallery layout and built in photo
editor.
Jelly Bean – Google made Operating System more responsive with Jelly Bean and introduces
file sharing with Android Beam. Restricted profile, Dial Pad complete, supported other
languages like Hindi, changed camera UI.
KitKat – Kitkat come up in 2013 with API Level 19. It has wireless printing capability, new
dailer id, chrome webview and screen recording.
Lollipop – Android version 5.0-5.1.1 come up with improved RAM and battery management.
Further restyling through Material design, no interrupts feature, unlock phone through
Bluetooth trusted devices, print previews and smart lock feature.
Marshmallow – Marshmallow was released in year 2015, come up with smarter battery and
doze mode (it prevents certain task from running if the phone being setting idle), Now On Tap,
better privacy settings, easier to upgrade phone, Fingerprint sensor and built in visual voice
mail.
Nougat – Android Nougat was made official in 2016 with updated emoji, 72 newly added, multi
window view (switch between apps with double tap), smarter battery with data saver mode,
more secured and high quality virtual reality with new dimensions.
Oreo - Android Oreo is the 8th major release of the Android operating system. It was first
released as a developer preview on October 25, 2017, with factory images for current Nexus
and Pixel devices. A second developer preview was made available on November 27, 2017 for
Nexus and Pixel devices, before the stable version was released on December 5, 2017.
Pie- Android Pie is the ninth major version of the Android operating system. It was first
announced by Google on March 7, 2018, and the first developer preview was released on the
same day. Second preview, considered beta quality, was released on May 8, 2018. The final
beta of Android P (fifth preview, also considered as a "Release Candidate") was released on July
25, 2018. The first official release was released on August 6, 2018.

4
2.2. ANDROID PLATFORM VERSIONS

Code Version Linux Kernel Initial Release API


Name Number Version Date Level

September 23,
Alpha, Beta 1.0, 1.1 ? 1
2008

Cupcake 1.5 2.6.27 April 27, 2009 3

Donut 1.6 2.6.29 September 15, 2009 4

Éclair 2.0 – 2.1 2.6.29 October 26, 2009 5–7

Froyo 2.2 – 2.2.3 2.6.32 May 20, 2010 8

Gingerbread 2.3 – 2.3.7 2.6.35 December 6, 2010 9 – 10

Honeycomb 3.0 – 3.2.6 2.6.36 February 22, 2011 11 – 13

Ice Cream Sandwich 4.0 – 4.0.4 3.0.1 October 18, 2011 14 – 15

Jelly Bean 4.1 – 4.3.1 3.0.31 to 3.4.39 July 9, 2012 16 – 18

KitKat 4.4 – 4.4.4 3.10 October 31, 2013 19 – 20

Lollipop 5.0 – 5.1.1 3.16 November 12, 2014 21 – 22

Marshmallow 6.0 – 6.0.1 3.18 October 5, 2015 23

Nougat 7.0 – 7.1.2 4.4 August 22, 2016 24 – 25

5
Code Version Linux Kernel Initial Release API
Name Number Version Date Level

Oreo 8.0 – 8.1 4.10 August 21, 2017 26 – 27

4.4.107, 4.9.84, and


Pie 9.0 August 6, 2018 28
4.14.42

3. Activity Time boxing

Table 1: Activity Time Boxing


Task No. Activity Name Activity time Total Time
1 Introduction 60mins 20min
2 Walk Through Task 90mins 30min
3 Evaluation Task 30min 30min

4. Objectives of the experiment

 To get basic understanding regarding Android App Development


 To build a mobile app in android studio
 To understand the Android Application Environment
 To Development Environment on machine

5. Tools
 Android Studio 3.3

6. Concept Map

Before any work can begin on the development of an Android application, the first step is to
configure a computer system to act as the development platform. This involves a number of
steps consisting of installing the Java Development Kit (JDK) and the Android Studio Integrated
Development Environment (IDE) which also includes the Android Software Development Kit
(SDK).
This lab will cover the steps necessary to install the requisite components for Android
6
application development on Windows.

7. Homework before Lab


No home tasks as it is the first lab of MAD course

8. Walk through Task

8.1. System Requirements


Android application development may be performed on any of the following system types:
 Windows 7 (32-bit or 64-bit)
 Windows 8 / Windows 8.1
 Windows 10
 Minimum of 4GB of RAM (6GB is preferred)
 10GB of available disk space

8.2. Installing the Java Development Kit (JDK)

The Android SDK was developed using the Java programming language. Similarly, Android
applications are also developed using Java. As a result, the Java Development Kit (JDK) is the
first component that must be installed.
Android development requires the installation of either version 6 or 7 of the Standard Edition
of the Java Platform Development Kit. Java is provided in both development (JDK) and runtime
(JRE) packages. For the purposes of Android development, the JDK must be installed.

8.2.1. Windows JDK Installation


For Windows systems, the JDK may be obtained from Oracle Corporation’s website using the
following URL:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Assuming that a suitable JDK is not already installed on your system, download the latest JDK
7
package that matches the destination computer system. Once downloaded, launch the
installation executable and follow the on screen instructions to complete the installation
process.

8.3. Installing Android Studio


In this part you will download and install Android Studio which will be the Integrated
Development Environment (IDE) used for this course.

1. Download Android Studio from


http://developer.android.com/sdk/index.html.

2. Click on ‘Download Android Studio’.


3. Open the executable file android-studio-<xxx>.
4. Once the setup loads, you will see the Welcome Screen.

5. Click ‘Next >’ on the Welcome Screen.


6. When choosing components, ensure all of the checkboxes are checked in for each
component to install. Once you are done, click ‘Next >’.
7. Agree to the Android Studio and the Intel HAXM License Agreements after reading
them.
8. Verify the install locations meet the installation requirements and click ‘Next >’.
9. You may or may not see the emulator setup settings, just click ‘Next >’ after
selecting
the RAM size.

8
10. Finally, click ‘Install’. You will see which operations are currently running in the
installation process and a progress bar displaying their progress.
11. Once the installation process is finished click ‘Next >’.

12. Android Studio is now set up. Check on ‘Start Android Studio’ and click ‘Finish’.
13. You will see the Complete Installation screen below.
14. If you had a previous version of Android Studio installed prior, then check either the
first of second radio box. Otherwise, check the last radio box and hit ‘OK’.

9
15. As Android Studio starts, the splash screen will appear.

16. After the splash screen you may see some additional setup operations run, such as
downloading components.

17. Once it is finished, click ‘Finish’.

10
9. Practice Tasks
This section will provide information about the practice tasks, which are required to be
performed in lab session. Design solutions of problems discussed in each task and place the
solution code in a folder specified by your lab instructor.

10. Evaluation criteria


The evaluation criteria for this lab is given in table 2. Each task will be evaluated by the lab
instructor. The marks will be assigned based on your performance.

You might also like