UNIT:2 Introduction to Android

Similar documents
Introduction To Android

Group B: Assignment No 8. Title of Assignment: To verify the operating system name and version of Mobile devices.

Chapter 1 Hello, Android

SD Module- Android Programming

Android App Development. Muhammad Sharjeel COMSATS Institute of Information Technology, Lahore

Mobile and Wireless Systems Programming

BCA 6. Question Bank

Android. Operating System and Architecture. Android. Screens. Main features

Android In Industrial Applications. A Field Report

Android Development Tutorial. Yi Huang

Ahmed Ali Big fan of Android

An Introduction to Android. Jason Chen Developer Advocate Google I/O 2008

Mobile Computing. Introduction to Android

Android Programming in Bluetooth Cochlea Group

COPYRIGHTED MATERIAL. 1Getting Started with Android Programming

Android Overview. Most of the material in this section comes from

MOBILE OPERATING SYSTEM

Android OS. Operating System based on Linux [ ] [Jonas Teuscher, Alex Cuordileone, Cédric Glaus]

Wi-Fi Direct in Android Using Peer to Peer Communication

Programming with Android: System Architecture. Dipartimento di Scienze dell Informazione Università di Bologna

Мобил қурилмалар учун операцион тизимлар

Why Android? Why Android? Android Overview. Why Mobile App Development? 20-Nov-18

Android - open source mobile platform

Android. Lesson 1. Introduction. Android Developer Fundamentals. Android Developer Fundamentals. to Android 1

What is Android? Mobile Device Application Development COMPSCI 345

ios vs Android By: Group 2

Programming with Android: System Architecture. Dipartimento di Scienze dell Informazione Università di Bologna

IJRDTM Kailash ISBN No Vol.17 Issue

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Mobile Application Development

Programming with Android: System Architecture. Luca Bedogni. Dipartimento di Scienze dell Informazione Università di Bologna

Android Development Tools = Eclipse + ADT + SDK

ABSTRACT. We present a smart phone application for Android phones for use by international

International Journal of Multidisciplinary Consortium Volume 2 Issue

Android App Development

Android App Development. Ahmad Tayeb

ECOM 5341 Mobile Computing(Android) Eng.Ruba A. Salamah

Programmazione di sistemi mobili e tablet

CS260 Intro to Java & Android 04.Android Intro

SHWETANK KUMAR GUPTA Only For Education Purpose

What is Android? Android is an open-source operating system (OS) used in smart devices

1. What are the key components of Android Architecture? 2. What are the advantages of having an emulator within the Android environment?

Mobile Devices and Smartphones

Android Software Development Kit (Part I)

DROID. By S.Gokulakrishnan AP/CSE SCSVMV

ANDROID SYLLABUS. Advanced Android

Introduction to Android Application Development. Mike Kvintus Principal Engineer JDSU

Android Basics. - Bhaumik Shukla Android Application STEALTH FLASH

Mobile Computing LECTURE # 2

Android. Michael Greifeneder. Image source: Android homepage

Training Management System

Embedded Systems Programming - PA8001

LECTURE NOTES ON MOBILE APPLICATION DEVELOPMENT

Manually Install 2.2 Update Android To 4.0 In

Started with Android Programming for Tablets

ORACLE UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Android Overview. Francesco Mercaldo, PhD

Abstract. 1. Introduction

IJREAT International Journal of Research in Engineering & Advanced Technology, Volume 1, Issue 5, Oct-Nov, 2013 ISSN:

Praktikum Mobile und Verteilte Systeme. Android-Basics. Prof. Dr. Claudia Linnhoff-Popien André Ebert, Sebastian Feld

Distributed Systems Introduction. Matthias Kovatsch Distributed Systems Group

Android-Basics. Praktikum Mobile und Verteilte Systeme. Prof. Dr. Claudia Linnhoff-Popien André Ebert, Sebastian Feld

Android-Basics. Praktikum Mobile und Verteilte Systeme

Android App Development Workshop

Mobile and Ubiquitous Computing: Android Programming (part 1)

Lecture 1 - Introduction to Android

PAPER ON ANDROID ESWAR COLLEGE OF ENGINEERING SUBMITTED BY:

Mobile Programming. Two Scenarios Web sites, like Tuubi where you read/write/download/ upload material

Android Forensics: Simplifying Cell Phone Examinations

Introduction to Android

Paraben s DS 7.5 Release Notes

Android Online Training

Android Ecosystem and. Revised v4presenter. What s New

Android Internals and the Dalvik VM!

Porting mobile web application engine to the Android platform

Developer s overview of the Android platform

Android App Development

Table of content. Introduction to Android. Members of OHA.. A look of OHA on Android.

Manual Flash Install Android Adobe Tablet >>>CLICK HERE<<<

INDEX. CHAPTER Android Introduction

Introduction to Android

Lecture 1 Introduction to Android. App Development for Mobile Devices. App Development for Mobile Devices. Announcement.

3- Windows Operating System

CS 4518 Mobile and Ubiquitous Computing Lecture 2: Introduction to Android. Emmanuel Agu

SD Module-1 Android Dvelopment

ARCHOS Kids Zone The best apps selection for kids

User Interface Design & Development

Real-Time Embedded Systems

Tablet - is the generic term for a mobile computer with touchscreen display that is operated with fingers or stylus pen instead of a mouse and

Mobile Software Development for Android - I397

Android for Ubiquitous Computing Researchers. Andrew Rice University of Cambridge 17-Sep-2011

mhealth for Chronic Disease Management: It Takes More Than an App

IEMS 5722 Mobile Network Programming and Distributed Server Architecture

Minds-on: Android. Session 1

MODULE 2: GETTING STARTED WITH ANDROID PROGRAMMING

Mobile Programming Lecture 1. Getting Started

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Clickteam Fusion 2.5 Android Bars - Guide CONTENTS. For more information, tutorials, examples and walk-thrus visit the website.

CSCU9YH Development with Android

BlackBerry KEYone Specifications

Transcription:

UNIT:2 Introduction to Android 1

Syllabus 2.1 Overview of Android 2.2 What does Android run On Android Internals? 2.3 Android for mobile apps development 2.5 Environment setup for Android apps Development 2.6 Framework - Android- SDK, Eclipse 2.7 Emulators What is an Emulator /Android AVD? 2.8 Android Emulation Creation and set up 2.9 First Android Application 2

2.1 OVERVIEW OF ANDROID Android is an open source and Linux-based Operating System for mobile devices such as smart phones and tablet computers. It was developed by Andy Rubin.(Father of Android) Android was introduced by the Open Handset Alliance, lead by Google, and other companies. Android is an open source operating system, so it allows developer to create their application at free of cost. 3

WHY ANDROID? 4

HISTORY OF ANDROID The code names of android ranges from A to L currently, such as Aestro, Blender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwitch, Jelly Bean, KitKat and Lollipop. 5

2.2 WHAT DOES ANDROID ANDROID INTERNALS? RUN ON During startup of the Android system the Linux kernel first calls the process "init". init reads the files "/init.rc" and "init.device.rc". "init.device.rc" is device specific, on the virtual device this file is called "init.goldfish.rc". init.rc starts the process "Zygote" via the program "/system/bin/app_process". Zygote loads the core Java classes and performs initial processing of them. These classes can be reused by Android application and therefore this step makes them faster to start. Once the initial work of Zygote is done, the process listens to a socket and waits for requests. 6

A special driver called Binder allow an efficient interprocess communications (IPC) in which allow references to objects are passed between processes. The real objects are stored in Shared Memory. This way the communication between the processes is optimized as less data must be transferred. 7

2.3 ANDROID FOR MOBILE APPS DEVELOPMENT Features of Android Open Source: Beautiful UI: Android OS basic screen provides a beautiful user interface. Connectivity: GSM/EDGE, IDEN, CDMA, EV-DO, UMTS, Bluetooth, WiFi, LTE, NFC and WiMAX. Storage: SQLite, a lightweight relational database, is used for data storage purposes. Media support: H.263, H.264, MPEG-4 SP, AMR, AMR-WB, AAC, HE-AAC, AAC 5.1, MP3, MIDI, Ogg Vorbis, WAV, JPEG, PNG, GIF, and BMP 8 Messaging: Supports SMS and MMS

Web browser: Based on the open-source WebKit layout engine, coupled with Chrome's V8 JavaScript engine supporting HTML5 and CSS3. Multi-touch: Android supports multi-touch screen (which was initially made available in handsets such as the HTC Hero.) Multi-tasking: User can jump from one task to another and same time various application can run simultaneously. Resizable widgets: Widgets are resizable, so users can expand them to show more content or shrink them to save space 9

2.5 ENVIRONMENT SETUP FOR ANDROID APPS DEVELOPMENT Install Java JDK Install Android SDK Install Eclipse IDE Android Development Tools (ADT) Eclipse Plug-in (optional) 10

11

Install required packages. 12

If you agree to install all the packages, select Accept All radio button and proceed by clicking Install button. Once all the packages are installed, you can close SDK manager using top-right cross button. 13

SET-UP ECLIPSE IDE To install Eclipse IDE, download the latest Eclipse binaries from http://www.eclipse.org/downloads/. Once you downloaded the installation, unpack the binary distribution into a convenient location. For example in C:\eclipse on windows, or /usr/local/eclipse on Linux and finally set PATH variable appropriately. Eclipse can be started by simply double click on eclipse.exe After a successful start up, if everything is fine then it should display following result 14

15

SET-UP ANDROID DEVELOPMENT TOOLS (ADT) PLUG-IN This step will help you in setting Android Development Tool plug-in for Eclipse. Let's start with launching Eclipse and then, choose Help > Software Updates > Install New Software. This will display the following dialogue box. 16

17

Now use Add button to add ADT Plug-in as name and https://dlssl.google.com/android/eclipse/ as the location. Then click OK to add this location, as soon as you will click OK button to add this location, Eclipse starts searching for the plug-in available the given location and finally lists down the found plug-ins. 18

Now select all the listed plug-ins using Select All button and click Next button 19

2.6 FRAMEWORK - ANDROID- SDK, ECLIPSE Android operating system is a stack of software components which is roughly divided into five sections and four main layers as shown in the architecture diagram. Linux kernel Libraries Android Runtime Application Framework Applications 20

21

1. Linux kernel: At the bottom of the layers is Linux This provides a level of abstraction between the device hardware and it contains all hardware drivers like camera, keypad, display etc. Also, the kernel handles all the things that Linux is really good at such as networking and a vast array of device drivers, which take the pain out of interfacing to peripheral hardware. 22

2. Libraries: On top of Linux kernel there is a set of libraries including open-source Web browser engine WebKit, well known library libc, SQLite database which is a useful repository for storage and sharing of application data, libraries to play and record audio and video, SSL libraries responsible for Internet security etc. 3. Android Runtime: This is the third section of the architecture and available on the second layer from the bottom. This section provides a key component called Dalvik Virtual Machine which is a kind of Java Virtual Machine specially designed and optimized for Android. 23

The Android runtime also provides a set of core libraries which enable Android application developers to write Android applications using standard Java programming language. 4. Application Framework The Application Framework layer provides many higher-level services to applications in the form of Java classes. Application developers are allowed to make use of these services in their applications. 24

5. Applications You will find all the Android application at the top layer. Examples of such applications are Contacts Books, Browser, Games etc. 25

2.7 EMULATORS WHAT IS AN EMULATOR /ANDROID AVD? The Android SDK includes a mobile devices Emulator. An Emulator is a virtual mobile device that runs on your computer. It allows to developed & test Android application without using a physical devices. 26

27

An emulator is a virtual mobile device that runs on your computer. The emulator allows you to develop and test Android applications without using a physical device. The Android SDK includes a virtual mobile device emulator that runs on your computer. AVD(Android Virtual Device) is essentially an emulator that allows Android applications to be tested without installing them on a physical android based device. 28

29

2.8 ANDROID EMULATION CREATION AND SET UP o o To test your Android applications you will need a virtual Android device. So before we start writing our code, let us create an Android virtual device. Launch Android AVD Manager using Eclipse menu optionswindow > AVD Manager> which will launch Android AVD Manager. Use New button to create a new Android Virtual Device and enter the following information, before clicking Create AVD button. 30

31

2.9 FIRST ANDROID APPLICATION The first step is to create a simple Android Application using Eclipse IDE. Follow the option File -> New -> Project and finally select New Android Application wizard from the wizard list. Now name your application as HelloWorld using the wizard window as follows: 32

This Android HelloWorld Example shows how to start with Android Development. Example <LinearLayout xmlns:android="http://schemas.android.com/apk/ res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > 33

<TextView android:id="@+id/textview1" android:layout_width="match_parent" android:layout_height="match_parent" android:text="hello World" android:textcolor="@color/red /> </LinearLayout> 34

If you have not created AVD then first create your AVD and then run your app. 35

QUESTION BANK Define Following: 1)android 2) emulator 3)ADT 4) Android SDK 5) OHA Explain main features of Android. List Android environment setup software. What is an Emulator / Android AVD? Write full form of OHA and AVD. Define ADT. Write steps for installation of Android Development Tools (ADT) Plug-in. Draw android OS framework. Explain libraries and android runtime environment. Write steps for Creation of an Android Application. 36