getting started with android
DESCRIPTION
The presentation provides a basic overview on ANDROID. What is the structure, what you need to start and basic building blocks of ANDROIDTRANSCRIPT
![Page 1: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/1.jpg)
Getting start on Android - By Amit Yadav
![Page 2: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/2.jpg)
Why Android? Introduction to Android How to get started? Emulator Dive in Resource available Q&A
Topics covered
![Page 3: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/3.jpg)
Open market place Instant publishing & feedback You can create anything Create background apps(mail notifications,
FB updates, twitter etc)
Why Android?
![Page 4: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/4.jpg)
Develop on ANY platform FREE Windows Linux Mac
Why Android? (cont…)
![Page 5: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/5.jpg)
Open software platform for mobile development A complete stack – OS, Middleware, Applications An Open Handset Alliance (OHA) project Powered by Linux operating system Fast application development in Java Open source under the Apache 2 license
Introduction to Android
![Page 6: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/6.jpg)
Android can run on multiple platforms Mobiles Notebook Desktop
Why Android? (cont…)
![Page 7: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/7.jpg)
Android Architecture
![Page 8: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/8.jpg)
Linux Kernel
Works as a HAL(H/w Acceleration Layer) Device drivers Memory management Process management Networking
![Page 9: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/9.jpg)
Libraries
C/C++ libraries Interface through Java Surface manager – Handling UI Windows 2D and 3D graphics Media codecs, SQLite, Browser engine
![Page 10: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/10.jpg)
Android Runtime
Dalvik VM Dex files Compact and efficient than class files Limited memory and battery power
Core Libraries Java 5 Std edition Collections, I/O etc…
![Page 11: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/11.jpg)
Application Framework
API interface Activity manager – manages application life
cycle.
![Page 12: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/12.jpg)
Applications
Built in and user apps Can replace built in apps
![Page 13: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/13.jpg)
Things to start with Java Developer Kit(JDK) Eclipse Android SDK Android Developer Tool(ADT)
How to get started? (cont…)
![Page 14: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/14.jpg)
How to get started? (cont…)
![Page 15: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/15.jpg)
Emulator
![Page 16: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/16.jpg)
Create new Android Application Project Application Name Project Name Package Name Minimum Required SDK Target SDK Compile With Theme
android create project --target <target-id> --name MyFirstApp \ --path <path-to-workspace>/MyFirstApp --activity MainActivity \ --package com.example.myfirstapp
Dive in…
![Page 17: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/17.jpg)
Dive in…(Application Building Blocks)
AndroidManifest.XML Activities Views & ViewGroup Intents Services Notifications Content Providers
![Page 18: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/18.jpg)
Dive in…(Manifest File)
The manifest file describes the fundamental characteristics of the app and defines each of its components.
![Page 19: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/19.jpg)
Dive in…(Activities)
This represents the presentation layer of an Android Application e.g. a screen which user sees.
An Android app can have several activities and the app can switch between these activities during runtime
![Page 20: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/20.jpg)
Dive in…(Views & ViewGroup)
Views are basic building blocks Views object are usually UI widgets(buttons,
text field etc) ViewGroups are invisible containers Organized as tree to build the GUI Described as an XML in the layout resource
![Page 21: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/21.jpg)
Dive in…(Intents)
Intents are used to move from Activity to Activity
Describes what an application wants Provides late runtime bindings
![Page 22: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/22.jpg)
Dive in…(Services)
They run in the background They don’t interact with users Run on the main thread of the process Is kept running as long as
Is Started Has Connections
![Page 23: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/23.jpg)
Dive in…(Notifications)
Notify the users about the events NotificationManager is used for this purpose Types
Persistent icon Turning LEDS Sound or Vibrations
![Page 24: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/24.jpg)
Dive in…(Content Providers)
ContentProviders are objects that can Retrieve Data Store Data
Data is available for all the applications Only way to share data across packages Backend is SQLite
![Page 25: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/25.jpg)
Resource available
http://androidcore.com/home.html Here you can find more than 300 tutorial for android this is the best site for android.
http://www.androidpeople.com/android-tutorial/ This is the another good site for android.
http://developer.android.com This is site here you find all the documentation of Android.
http://en.wikipedia.org/wiki/Android_(operating_system) This is the link of Wikipedia for Android
http://www.vogella.de/articles/Android/article.html#overview This is the another good site for Android Development.
http://www.pdftop.com/ebook/android+tutorial/ This is the link here you find lot of book related to Android
http://code.google.com/p/android-wheel/ This is the side here you find source code of the projects.
![Page 26: Getting Started With ANDROID](https://reader035.vdocuments.mx/reader035/viewer/2022062704/555ac801d8b42ab1128b51b1/html5/thumbnails/26.jpg)
Q&A
Q&A