Andriod_Intro
-
Upload
purvik-rana -
Category
Documents
-
view
13 -
download
0
Transcript of Andriod_Intro
![Page 1: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/1.jpg)
Android M o b i l e O S P U R V I K 1239
![Page 2: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/2.jpg)
What is Android? A software platform and operating system for mobile
devices
Based on the Linux kernel
Developed by Google and later the Open Handset Alliance(OHA)
Allows writing managed code in the Java language
Unveiling of the Android platform was announced on 5November 2007
P U R V I K 1239
![Page 3: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/3.jpg)
Android
“ It is a software stack for mobile devices that includes anoperating system, middleware and key applications “
Released under the open-source Apache License
Offers a unified approach to application development
Need to develop only for Android
Application can run on numerous devices
P U R V I K 1239
![Page 4: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/4.jpg)
Features of Android
Storage - SQLite, a lightweight relational database for datastorage
Connectivity – GSM/EDGE, CDMA, UMTS, WiFi, WiMAX
Media Support
Hardware Support – Accelerometer Sensor, Digital Compass,Proximity Sensor and GPS
Multi-touch and Multi-tasking
Flash Support – Android 2.3 (Flash 10.1)
Tethering – sharing of Internet connection as a wired/wirelesshotspot
P U R V I K 1239
![Page 5: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/5.jpg)
Architecture of AndroidP U R V I K 1239
![Page 6: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/6.jpg)
Android OS is roughly divided into five sections in fourmain layers:
• Contain all the Low level drivers for various hardware components of Android
Linux Kernel
• Code for main features
• SQLite library- data storage
• WebKit library – functions for web browsing
Libraries
• Set of Core libraries – enable developers to write Android Apps using Java Programming
Android Runtime
P U R V I K 1239
![Page 7: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/7.jpg)
• Expose various capabilities of Android – developers use them in their Apps
Application Framework
• Apps that ship with the Android device (like Phone, Contacts, Browser etc..)
• Apps that download and install from Android Market
Applications
P U R V I K 1239
![Page 8: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/8.jpg)
Android Development
• IDE for Android Apps
Eclipse
• Debugger, libraries, emulator, docs,
sample code and tutorials
Android SDK• Pug-in for Eclipse IDE
for Creation-Debugging
ADT (Android Development Toolkit)
P U R V I K 1239
![Page 9: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/9.jpg)
• .java source files of your Projectsrc
• Android.jar , contain all class libraries
Android 2.3
• R.Java – compiler generated file for all resources in your project
Gen
• All HTML, txt files, database assets used by your apps
assects
• Resources used in your Application Res
• Specify permission for your Application
• Other features like intent-filters, receivers etc.
AndroidManifest.xml
Application StructureP U R V I K 1239
![Page 10: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/10.jpg)
How to Start…. Eclipse
File New Project Android – Android Project
P U R V I K 1239
![Page 11: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/11.jpg)
P U R V I K 1239
![Page 12: Andriod_Intro](https://reader035.fdocuments.us/reader035/viewer/2022071823/55ba8e54bb61eb775a8b4594/html5/thumbnails/12.jpg)
Various Layouts
• Arrange the views in Single Row or Single Column
Linear Layout
• Enables to set the exact location of its children
Absolute Layout
• Group views into rows and column• <TableRow> - designet a Row in the Table
Table Layout
• Enables you to set child position relative to each other
Relative Layout
P U R V I K 1239