Unit 1 & 2 MAD
Unit 1 & 2 MAD
Ms.Nitanjali Mane
Computer Department
PCP,Nigdi
Mobile Operating Systems
• A mobile OS is an operating system for smartphones, tablets, PDAs, or
other mobile devices.
• Mobile OSs combine features of a personal computer OS with other
features useful for mobile or handheld use; usually including, and most
of the following considered essential in modern mobile systems;
* touchscreen, cellular, Bluetooth, Wi-Fi, GPS mobile navigation, camera,
video camera, speech recognition, voice recorder, music player, etc.
* Some Current software platforms
• Android (based on the Linux Kernel) is from Google Inc.
• CyanogenMod and Cyanogen OS are based on the open source Android
Open Source Project(AOSP).
• Fire OS is an operating system launched by Amazon based on Google's
AOSP.
• iOS (previously known as iPhone OS) is from Apple Inc.
• Windows Phone (Soon to be Windows 10 Mobile) is from Microsoft.
• BlackBerry 10 (based on the QNX OS) is from BlackBerry.
• Firefox OS is from Mozilla.
* Android is an open source and Linux-based Operating System
for mobile devices such as smartphones and tablet computers.
Google
OEMs(Original Equipment manufacturers)
Application Development companies
Freelance android developers
*Why Android ?
Features of Android
Requirements for Android
*OS
• Android application development on either of the following operating systems:
* Microsoft Windows.
*Tools
• All the required tools to develop Android applications are freely available and can be
downloaded from the Web. Following is the list of software's you will need before you start
your Android application programming.
1. Java JDK6 or later version
2. Android Studio / Android SDK and Eclipse IDE for Java Developers (optional) and Android
Development Tools (ADT) Eclipse Plug-in (optional)
Requirements for Android
2) Native Libraries
• On the top of linux kernel, their are Native libraries such as WebKit,
OpenGL, FreeType, SQLite, Media, C runtime library (libc) etc.
• The WebKit library is responsible for browser support, SQLite is for
database, FreeType for font support, Media for playing and recording audio
and video formats.
3) Android Runtime
• In android runtime, there are core libraries and DVM (Dalvik Virtual
Machine) which is responsible to run android application.
• DVM is like JVM but it is optimized for mobile devices. It consumes less
memory and provides fast performance.
4) Android Framework
• On the top of Native libraries and android runtime, there is android
framework.
• Android framework includes Android API's such as UI (User Interface),
telephony, resources, locations, Content Providers (data) and package
managers.
• It provides a lot of classes and interfaces for android application
development.
5) Applications
• On the top of android framework, there are applications.
• All applications such as home, contact, settings, games, browsers are
using android framework that uses android runtime and libraries.
• Android runtime and native libraries are using linux kernal.
* Advantages of Android
• Supports 2D and 3D Graphics
• Supports multiple language
• Faster Web browser
• Video calling
• Open source framework
• Multitasking
• Uses of tool are very easy.
• Low chance if crashing.
* Disadvantages of Android
• Need Internet connection
• Advertising
• Wasteful Battery
• Many applications contain virus
• Slow response
• Processor heats.
* Unit 2
Installation and configuration of Android
(6 marks)
Ms.Nitanjali Mane
Computer Department
PCP,Nigdi
*Operating System
* In the Computer System (comprises of Hardware and
software), Hardware can only understand machine code (in
the form of 0 and 1) which doesn't make any sense to a
naive user.
* We need a system which can act as an intermediary and
manage all the processes and resources present in the
system.
• An Operating System can be defined as an interface between user and
hardware. It is responsible for the execution of all the processes, Resource
Allocation, CPU management, File Management and many other tasks.
Difference between Android and Windows OS
Terms Android OS Windows OS
Developer Android was developed and owned Windows was developed and owned
by Google LLC. by Microsoft Incorporation.
Kernel In Android, the Kernel type is Linux- In Windows, the Kernel type is
based. Hybrid with modules here.
Apps Android is an open-source platform, so Windows Store does not even
it has more applications and games than offer you millions of apps.
a windows operating system. Moreover, some of these apps
Android OS comes with Google
and games are free to download,
PlayStore, which has more than 2.2
million applications and games that while some are paid.
work with different Android versions.
Cost Android apps are free of cost. Windows apps are charged for the
original version.
Security Android is not more secured because The Windows operating system offers
it is an open-source platform. you more security as compared to
Android OS.
The Windows Store is not as simple as
the Android Operating system.
To upload any apps, users need to go
through strict security checkups.
Keyboard Users can customize the keyboard Windows Phone is strict as the user has
layout depending on their use, whether to go with a swipe keyboard and leaves
it has to go for a default version or a no other choice for users.
swipe one.
Java JDK
• The Java Development Kit (JDK) is a software development environment used
for developing Java applications and applets.
• It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a
compiler (javac), an archiver (jar), a documentation generator (javadoc) and
other tools needed in Java development.
• JVM
• JVM (Java Virtual Machine) is a specification that provides runtime environment
in which java bytecode can be executed.
• JVMs are available for many hardware and software platforms. JVM is a part of
Java Run Environment (JRE).
• The JVM performs following operation:
* Loads code
* Verifies code
* Executes code
* Provides runtime environment
*JRE
* The Java Runtime Environment (JRE) is a set of software tools for development
of Java applications. It combines the Java Virtual Machine (JVM), platform core
classes and supporting libraries.
Android SDK
* The Android SDK (software development kit) is a set of
development tools used to develop applications for Android
platform. The Android SDK includes the following:
* Required libraries
* Debugger
* An emulator
* Relevant documentation for the Android application program
interfaces (APIs)
* Sample source code
* Tutorials for the Android OS
Android Development Tools (ADT)
* The android developer tools let you create interactive and powerful application for
android platform.
* 1. Android Studio
* Developed by Google, Android Studio is an all-rounder integrated development
environment. Android has Gradle-base support that has features like visual layout
editor, intelligent code editor, real-time profilers and APK analyzer.
* 2. Visual Studio – Xamarin
* Xamarin was launched in 2011 which is the best free IDE for delivering an enterprise-
quality, cross-platform approach. Xamarin supplies add-ins to Microsoft Visual
Studio that allows developers to build Android, iOS, and Windows apps within the IDE
* 3. IntelliJ IDEA
* Using this IDE, you can do in-depth coding, quick navigation, and error analysis. It
supports mobile app development with the help of Java, Scala, Kotlin, Groovy.
* 4. Eclipse IDE
* It is one of the most popular IDES of Android apps. The open-source software is free
to use. Released under the Eclipse Public License, it holds a large community having
plenty of plugins and configurations. Highly customizable offers full support for Java
programming language and XML.
Android Virtual Devices (AVDs)
* An Android Virtual Device (AVD) is a configuration that
defines the characteristics of an Android phone, tablet, Wear
OS, Android TV, or Automotive OS device that you want to
simulate in the Android Emulator.
* The AVD Manager is an interface you can launch from Android
Studio that helps you create and manage AVDs.
* We can get the incoming phone calls and text messages. It also
gives the location of the device and simulates different
network speeds.
* Fig.: The compiling and packaging process from the source file
Dalvik Virtual Machine (DVM)
• The javac tool compiles the java source file into the class file.
• The dx tool takes all the class files of your application and generates
a single .dex file. It is a platform-specific tool.
• The Android Assets Packaging Tool (aapt) handles the packaging
process.
Difference between JVM and DVM
DVM (Dalvik Virtual Machine) JVM (Java Virtual Machine)
For DVM very few Re-tools are available. For JVM many Re-tools are available.
* After clicking Next, the installer presented the Completing Android Studio
Setup panel.
* To complete the installation, leave Start Android Studio box checked and click Finish.
Running Android Studio
* The first time Android Studio runs, it presents a Complete Installation dialog box that
offers the option of importing settings from a previous installation.
* choose not to import settings (the default selection) and click OK, the following splash
screen will appear:
Running Android Studio
* You will observe the following Finding Available SDK Components message
box.
Running Android Studio
* Android Studio will present the following Android Studio Setup
Wizard dialog box:
Running Android Studio
* Click Next, and the wizard will invite you to select an
installation type. Keep the default standard setting.
Running Android Studio
* Then you can choose a user interface theme.
Running Android Studio
* You can choose whichever you want and click Next. Android
Studio will next provide the opportunity to verify settings.
Running Android Studio
* click Finish and Android Studio will begin the process of
downloading SDK components.
Running Android Studio
* It can take several minutes for this part of the setup to finish.
Running Android Studio
* Finally, click Finish to complete the wizard. The Welcome to Android Studio dialog box
appear.
* This dialog box is used to start up a new Android Studio project, work with an existing
project, and more. It can be accessed by selecting Android Studio from the
Windows Start menu, or the equivalent on another platform.