Professional Documents
Culture Documents
IS 238: Mobile Application Development (8 Credits) : Instructor: Dr. Kennedy
IS 238: Mobile Application Development (8 Credits) : Instructor: Dr. Kennedy
IS 238: Mobile Application Development (8 Credits) : Instructor: Dr. Kennedy
(8 credits)
Lecture :
Instructor : Dr. Kennedy Wednesday 07:00 – 09:00
E-mail: kenfactz@gmail.com Room: D01 (LUHANGA HALL)
Practical:
Friday 14:00 – 16:00
1
Unit II: Mobile Programming
2
Introduction to android
⚫ What is a android?
➢ A software platform and operating system for mobile devices
Why android?
Features of android
⚫ Android devices come in all shapes and sizes including, but not
limited to, the following types
➢ Smartphones
➢ Tablets
➢ E-reader devices
➢ Internet TVs
➢ Automobiles
➢ Smartwatches
Pre-installed android applications
⚫ Linux kernel
➢ This is the kernel on which Android is based.
➢ Core services (including hardware drivers, process and memory
management, security, network, and power management) are
handled by a Linux kernel (the specific kernel version depends
on the Android platform version and hardware platform).
⚫ Libraries
➢ These contain the code that provides the main features of an
Android OS. For example
➢ The SQLite library provides database support so that an
application can use it for data storage.
➢ A media library for playback of audio and video media.
➢ The WebKit library provides functionalities for web browsing.
Android Architecture/Platform
⚫ Android runtime
➢ The Android runtime is located in the same layer with the
libraries and provides a set of core libraries that enable
developers to write Android apps using the Java programming
language.
➢ The Android runtime also includes the Dalvik virtual machine
➢ It enables every Android application to run in its own process,
with its own instance of the Dalvik virtual machine.
➢ Android applications are compiled into Dalvik executables.
➢ Dalvik is a specialized virtual machine designed specifically for
Android and optimized for battery-powered mobile devices with
limited memory and CPU power.
Android Architecture/Platform
⚫ Application framework
➢ The application framework exposes the various capabilities of the
Android OS to application developers so that they can make use of
them in their applications.
➢ The application framework provides the classes used to create
Android applications.
➢ It also provides a generic abstraction for hardware access and
manages the user interface and application resources
⚫ Applications
➢ At this top layer are the applications that ship with the Android
device (such as Phone, Contacts, Browser, and so on), as well as
applications that you download and install from the Android Market.
➢ Any applications that you write are located at this layer.
Android Architecture/Platform
⚫ Applications
➢ At this top layer are the applications that ship with the Android
device (such as Phone, Contacts, Browser, and so on), as well
as applications that you download and install from the Android
Market.
➢ Any applications that you write are located at this layer.
Required tools
⚫ Before you write your first app, you need to download the required
tools
➢ For Android development, you can use a Mac, a Windows PC,
or a Linux machine
➢ The Android Studio makes use of the Java SE Development Kit
(JDK). If your computer does not have the JDK installed, you
should download it from oracle website www.oracle.com
➢ Make sure you have oracle account before download JDK
Required tools
⚫ Android Studio
➢ The first and most important piece of software you need to
download is Android Studio 4 i.e. the latest stable version
➢ It is the official IDE (Integrated Development Environment) for
Android development, created by Google. You can use it to build
Android apps on Windows, Linux, and MacOs operating
systems.
➢ Android Studio provides the fastest tools for building apps on
every Android device
➢ Android Studio supports all programming languages you can use
for Android development: Java, C/C++, and Kotlin.
➢ This IDE is based on IntelliJ IDEA (a popular Java IDE), which
offers a powerful code editor and developer tools.
Required tools
⚫ Android SDK
➢ The Android SDK is a development kit for Android. It includes a
complete set of development and debugging tools.
➢ The Android SDK is composed of modular packages that you
can download separately using the Android SDK Manager. The
toolkit includes:
❖ SDK tool
❖ SDK platform tools
❖ SDK documentation
❖ Android SDK resources
❖ SDK example
❖ Google API
❖ Android support
Required tools
⚫ AVD Manager
➢ AVD Manager is a built-in tool of Android Studio.
➢ AVD stands for Android Virtual Device.
➢ It makes it possible to create virtual Android devices for testing
purposes.
➢ An AVD is a configuration that describes the characteristics of a
virtual device such as hardware profile, storage area,
appearance, system image, and other attributes.
➢ AVD enables you to create as many AVDs as you want.
➢ You can access your virtual devices for testing purposes in the
Android Emulator that also comes bundled with Android
Installing "Android Studio IDE" and "Android
SDK"
⚫ Windows requirements
➢ Microsoft Windows 7/8/10 (32-bit or 64-bit)
➢ 3 GB RAM minimum, 8 GB RAM recommended (plus 1 GB for
the Android Emulator)
➢ 4 GB of available disk space minimum, 4 GB recommended
(500 MB for IDE plus 1.5 GB for Android SDK and emulator
system image)
➢ 1280 x 800 minimum screen resolution
Installing "Android Studio IDE" and "Android
SDK"