android architecture & setting up. android operating system comprises of different software...

25
Android architecture & setting up

Upload: roy-johns

Post on 13-Jan-2016

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Android architecture&

setting up

Page 2: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android
Page 3: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

• Android operating system comprises of different software components arranges in stack.

• Different components of android operating system are:- Linux kernel libraries Android Run time Application framework Applications

Page 4: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Linux kernal

• Provides the basic system functionality such as process management,memory management & device management

• Provide array of divice drivers to interface the android with peripheral devices.

Page 5: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Libraries• On the top of linux kernel.• Provide different libraries useful for well functioning of android

platform.Libraries Explanation

SQLite It is used to access data published by content providers & includes SQLite database management classes.

SSL It is used to provide internet security.

OpenGL It is used to provide java interface to the openGL/ES 3D graphics rendering API.

Media framework It is used to provide different media codecs which allow the recording & playback of different media formats.

WebKit It is the browser engine used to display internet content or HTML content.

Page 6: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Android Runtime

• 3rd component.placed in 2nd layer from bottom.• It contain DVM.• DVM is similar to JVM;difference is it is designed & optimized for

Android.• DVM uses core functions of Linux such as memory management and

multithreading & enables each android app to run its own process.

Page 7: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Application Framework

• 2nd topmost component in android operating system stack.• Android application directly interact with application framework.• It manages the basic functions of android device such as resource

management,voice call management etc

Page 8: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Important blocks of Application framework areBlock Explanation

Activity manager Block is used to manage complete activity lifecycle of applications

Content providers Block is used to manage the data sharing between two applications

Telephony Manager Block is used to manages all voice calls

Location Manager Block is used to manage the location obtained using GPS or cell tower

Resource Manager Block is used to manage the different types of resources used in android app

Page 9: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Applications

Applications created by third party users or developer will be installed on application layer.

Page 10: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Setting up local environment to create android application

• We can start android application development in Microsoft Windows XP & higher versions of windows.

Page 11: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

System Requirements

• Windows• Microsoft® Windows® 8/7/Vista/2003 (32 or 64-bit)• 2 GB RAM minimum, 4 GB RAM recommended• 400 MB hard disk space• At least 1 GB for Android SDK, emulator system images, and caches• 1280 x 800 minimum screen resolution• Java Development Kit (JDK) 7 • Optional for accelerated emulator: Intel® processor with support for Intel®

VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality

Page 12: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Then…

• Android SDK• Eclipse IDE for java Developers• Android Development tools(ADT)Eclipse Plugin

Page 13: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

• Steps 1:- Download android SDK from the android developer website.• Step 2:-After downloading the complete package extract the zip file. You need to open the eclipse from eclipse->eclipse.exe. Once you open the eclipse you will able to see SDK icon on top of eclipse IDE.Step 3:-After clicking on the icon you will be prompted to download all the necessary packages.Step 4:-After downloading all the packages you will able to develop android application for any version. Downloaded stuff will go into sdk->platform folder.

Page 14: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Create android virtual device(AVD)

• AVD provide you virtual emulator to test your android app.

Page 15: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

SDK Manager

Page 16: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

AVD

Page 17: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

ADT Plugin (1)

• In Eclipse, go to Help -> Install New Software• Click ‘Add’ in top right• Enter:

• Name: ADT Plugin• Location: https://dl-ssl.google.com/android/eclipse/

• Click OK, then select ‘Developer Tools’, click Next• Click Next and then Finish• Afterwards, restart Eclipse• Specify SDK location (next 3 slides)

• Must do this every time start a new project in a new location (at least in Windows)

Page 18: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

ADT Plugin (2)

Page 19: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

ADT Plugin (3)

Page 20: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

ADT Plugin (4)

Page 21: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android

Android Studio Setup Guide for Windows

CONTENTS (Est. Total Time Required: 60 min)Install Java (5 min)Set Your JAVA_HOME (5 min)Install Android Studio (15 min)Install Android System Images and Tools (30 min)Create an Android Virtual Device (AVD) (5 min)

Page 22: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android
Page 23: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android
Page 24: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android
Page 25: Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android