Capital University of Science and Technology Islamabad: Lab Manual For Mobile Application Development
Capital University of Science and Technology Islamabad: Lab Manual For Mobile Application Development
Islamabad
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
September 23,
Alpha, Beta 1.0, 1.1 ? 1
2008
5
Code Version Linux Kernel Initial Release API
Name Number Version Date Level
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.
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
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.
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.