Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Android architecture & setting up • 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 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. 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. 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. 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 Important blocks of Application framework are Block 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 Applications Applications created by third party users or developer will be installed on application layer. Setting up local environment to create android application • We can start android application development in Microsoft Windows XP & higher versions of windows. 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 Then… • Android SDK • Eclipse IDE for java Developers • Android Development tools(ADT)Eclipse Plugin • 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. Create android virtual device(AVD) • AVD provide you virtual emulator to test your android app. SDK Manager AVD 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) ADT Plugin (2) ADT Plugin (3) ADT Plugin (4) 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)