SlideShare a Scribd company logo
Welcome to Vibrant
Technologies and Computers
---------
Hibernate Training course
1
2
Contents
3
 What’s Android
 Android architecture
 Android software development
 ‘Hello World’ on Android
 More…
Contact Us On : vibranttechnologies.co.in
Android Phones
4
Motorola CliqHTC G1 HTC HeroSamsung i7500
Samsung Moment
Motorola DroidHTC Magic HTC Tattoo
Sony X10
Contact Us On : vibranttechnologies.co.in
Mobile Devices
5
 It’s obvious that mobile device may take the place of PC in
future
 OS plays a vital part
Processor Device
Embedded
OS
Middleware Apps
Contact Us On : vibranttechnologies.co.in
6
OHA and Android
7
 OHA(Open Handset Alliance) is a group of 71 technology
and mobile companies, including Google, Intel, Dell, HTC
and China Mobile…
 OHA’s aim:
 accelerate innovation in mobile phones
 offer consumers a richer, less expensive, and better mobile
experience
 OHA developed Android™, the first complete, open, and
free mobile platform
 OHA was initially called up by Google, and Google is the
‘captain’
Contact Us On : vibranttechnologies.co.in
What’s Android
8
 Generally, Android is a software stack for
mobile devices that includes an operating
system, middleware and key applications
 Android is based on JAVA and all its
applications are developed in JAVA
 The JAVA VM, known as Dalvik, is highly
customized and optimized for mobile
devices
 Android SDK offers rich tools for android
application development and many useful
APIs。
The core of Android
Contact Us On : vibranttechnologies.co.in
Android Features #1
9
 Application framework enabling reuse and replacement
of components
 Optimized Java virtual machine: Dalvik
 Optimized Graphics Processing, supporting 2D and 3D
graphics(OpenGL ES 1.0 )
 Integrated open source web browser: WebKit
 SQLite for structured data storage
Contact Us On : vibranttechnologies.co.in
Android Features #2
10
 Multimedia capability, supporting varieties of audio,
video and still image formats
 GSM Telephony
 Bluetooth, EDGE, 3G and Wi-Fi support
 Camera, GPS, compass, accelerometer
and other sensors support
 Rich development environment, including an
emulator, debugging tools, memory probe tools, log
tools and powerful eclipse plugins
Hardware
dependent
Contact Us On : vibranttechnologies.co.in
11 Contact Us On : vibranttechnologies.co.in
Linux Kernel
12
 Note that Android based on a Linux kernel not a Linux OS
 Supplies Security, Memory management, Process
management, Network stack and Driver model
 Acts as an abstraction layer between the hardware and
the rest of the software stack
Contact Us On : vibranttechnologies.co.in
Libraries
13
 Run in system background
 Using C/C++ Language
 4 types of Libraries
 Bionic Libc, system C libraries
 Function Libraries, supporting multimedia, web browser,
SQLite...
 Native Servers
 Hardware
Abstraction Libraries
Contact Us On : vibranttechnologies.co.in
Core Libraries
14
 System C library, the standard C system library, tuned for
embedded Linux-based devices
 Media Libraries, support playback and recording of many
popular audio and video formats, as well as image files,
including MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG
 Surface Manager, manages access to the display subsystem
and seamlessly composites 2D and 3D graphic layers from
multiple applications
 WebKit, a modern web browser engine which powers both
the Android browser and an embeddable web view
 SGL, the underlying 2D graphics engine
 3D libraries, an implementation based on OpenGL ES 1.0 APIs
 FreeType , bitmap and vector font rendering
 SQLite , a powerful and lightweight relational database engine
Contact Us On : vibranttechnologies.co.in
Andoid Runtime
15
 The core of Android platform
 Dalvik Virtual Machine
 Register-based
 Executes files in the Dalvik Executable (.dex)
format
 Java core Libraries
 Provides most of the functionality of the Java programming
language.
Contact Us On : vibranttechnologies.co.in
Android Runtime (cont.)
16
 The functions of Java core libraries rely on the Dalvik VM
and the underlying Linux kernel
 Multiple Dalvik VMs may run at the same time
 Every Android application runs in its own process, with its
own instance of the Dalvik virtual machine
 The "dx" tool in Android SDK can transform compiled JAVA
class into the .dex format
Contact Us On : vibranttechnologies.co.in
Dalvik Virtual Machine
17
 Android custom implementation virtual machine
 Provides application portability and runtime consistency
 Runs optimized file format (.dex) and Dalvik bytecode
 Java .class / .jar files converted to .dex at build time
 Designed for embedded environment
 Supports multiple virtual machine processes per device
 Highly CPU-optimized bytecode interpreter
 Efficiently Using runtime memory
 Core Libraries
 Core APIs for Java language provide a powerful, yet simple and
familiar development platform
Contact Us On : vibranttechnologies.co.in
DVM vs. JVM
18
 DVM
 Google
 Dalvik executable
 Only supports a subset of standard Java Library
 JVM
 Sun
 Java bytecode
 Some worries that Java world may be divided into
different communities, each has its own Java standard
Contact Us On : vibranttechnologies.co.in
Application Framework
19
 Simplify the reuse of components
 Applications can publish their capabilities and any other
application may then make use of those capabilities
 Applications is a set of services and systems, include
 Views system, content providers, resources manager and so on
Contact Us On : vibranttechnologies.co.in
Application Framework (cont.)
20
 Activity Manager, manages the lifecycle of applications
and provides a common navigation backstack
 Notification Manager, enables all applications to display
custom alerts in the status bar
 Resource Manager, providing access to non-code
resources such as localized strings, graphics, and layout
files
 Content Providers, access data from other applications
(such as Contacts), or to share their own data
 Views, used to build an application, including lists, grids,
text boxes, buttons, and even an embeddable web
browser
Contact Us On : vibranttechnologies.co.in
Applications
21
 A set of core applications shipped with Android platform
 an email client, SMS program, calendar, maps, browser,
contacts, and others
 All written in Java
 Our applications are in the same level as these
applications
Contact Us On : vibranttechnologies.co.in
Development Environment
 IDE – Eclipse
 Eclipse plug-in - ADT
 Software Development Kit (SDK)
 Android Emulator
 Debugger
Contact Us On : vibranttechnologies.co.in22
Setup Android SDK
23
 Download Android SDK and extract the zip file to an
arbitrary folder
 http://androidappdocs.appspot.com/sdk/index.html
 E.g.: extract to C:
 The SDK will be used by ADT in eclipse
Contact Us On : vibranttechnologies.co.in
Setup ADT plugin
24
 Install Eclipse ADT plugin
 Eclipse must be J2EE edition,
3.5 recommended
 Update site: https://dl-
ssl.google.com/android/eclip
se/
 Install all the plugins in the
repository
 Restart needed after
installation
Contact Us On : vibranttechnologies.co.in
Configure ADT Plugin
25
 Open eclipse Window->Preferences, select Android
 Setup the SDK location as the folder where you extracted
the downloaded SDK zip file
Contact Us On : vibranttechnologies.co.in
Setup SDK APIs
26
 Open Window->Android SDK and AVD Manager
 Click Available Packages and then choose proper APIs to
install, the latest may be the best
Contact Us On : vibranttechnologies.co.in
Setup Emulators
27
 After SDK APIs installation,
click Virtual Devices
 Click new, there will be a
dialog
 input a name
 choose a running target and a
skin
 specify the SD card size
Contact Us On : vibranttechnologies.co.in
Ready…
28
 Now you may start
the AVD
 Click start to start
the new AVD
 First start-up may
take a very long time
Contact Us On : vibranttechnologies.co.in
Create a new Android Project
29
 Open File->New-
>Android project
 Project name
 Build Target
 Application name
 Package name
 Create Activity
Contact Us On : vibranttechnologies.co.in
Hello World Project
30
 src: source folder
 gen: SDK generated file
 android 2.2: reference lib
 assets: binary resources
 res: resource files and
resource description files
 AndroidManifest.xml:
application description file
 default.properties: project
properties file
Contact Us On : vibranttechnologies.co.in
Say Hello World
31
 modify HelloWorld.java
Contact Us On : vibranttechnologies.co.in
Run Hello World
32
 Select HelloWorld Project, Run->Run as->Android
Application
 ADT will start a proper AVD and run HelloWorld app on it
Contact Us On : vibranttechnologies.co.in
Behind HelloWorld #1
33
 R.java, generated by Android SDK, represents all the
resources of the app. resources are all in res folder
 resources are pre-compiled into binary format
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package sample.hello;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int icon=0x7f020000;
}
public static final class layout {
public static final int main=0x7f030000;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int hello=0x7f040000;
}
}
Contact Us On : vibranttechnologies.co.in
Linear Layout
Behind HelloWorld #2
34
 res/layout , contains layout declarations of the app, in XML
format, UIs are built according to the layout file
main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
TextView, display
static text
A reference to
String resource
‘hello’Contact Us On : vibranttechnologies.co.in
referenced in
res/layout/mai
n.xml
Behind HelloWorld #3
35
 res/values, contains string declarations or other
values(e.g.:colors) of the app
 string.xml, contains string resources
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, HelloWorld!</string>
<string name="app_name">HelloWorld</string>
</resources>
referenced in
AndroidManifest.xml
Contact Us On : vibranttechnologies.co.in
Behind HelloWorld #4
36
 res/drawable, contains all image resources
 folders may have suffixes, app will choose the most suitable
one, so do the other resources
 three folders: drawable-ldpi, drawable-hdpi, drawable-mdpi,
each contains an icon.png file
 app will choose the proper icon according to the device DPI
 reference name:@drawable/icon
 other folders we may use in future
 menu, anim (animation), xml ( preference and searchable)
Contact Us On : vibranttechnologies.co.in
Behind HelloWorld #5
37
 AndroidManifest.xml describe the application
 declare app’s name, version, icon, permission, etc…
 declare the application's components: activity, service ,receiver
or provider
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="sample.hello" android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloWorld" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER”/>
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
</manifest>
Contact Us On : vibranttechnologies.co.in
Core Components-Activity #1
38
 Basically, An activity presents a visual user interface for
one focused endeavor the user can undertake
 An application might consist of just one activity or several,
each Activity is derived from android.app.Activity and
should be declared in AndroidManifest.xml file
 Each activity is given a default window to draw in, the
window may be full screen or smaller and on top of other
window
 The visual content of the window is provided by a
hierarchy of views — objects derived from the base View
class
 Activity.setContentView() method is used to set a certain
hierarchy of view objects
Contact Us On : vibranttechnologies.co.in
Core Components-Activity #2
39
 Activities are activated by asynchronous messages called
intents
 An intent is an Intent object that holds the content of the message
 The action being requested or the URI of the data to act on
 The <intent-filter> label in AndroidManifest.xml file specifies
the Intent that can start the Activity
 declares the main activity, it will be started automatically when the
app starts
 An activity is launched (or given something new to do) by
passing an Intent object to Context.startActivity() or
Activity.startActivityForResult()
Contact Us On : vibranttechnologies.co.in
Activity lifecycle
40 Contact Us On : vibranttechnologies.co.in
Other Core Components
41
 Service
 A service doesn't have a visual user interface, runs in the
background for a period of time
 Broadcast receivers
 a component that does nothing but receive and react to
broadcast announcements
 Content providers
 A content provider makes a specific set of the application's
data available to other applications.
 The data can be stored in the file system, in an SQLite database,
or in any other manner that makes sense
Contact Us On : vibranttechnologies.co.in
Beyond HelloWorld #1
42
 Build up an app that you can input your greetings and
display your greetings
 Input: EditText
 Display: TextView
 Of course, we have to add an button
 Edit res/layout/main.xml file to add these components
 each has an android:id property, used to reference it in code
Contact Us On : vibranttechnologies.co.in
Beyond HelloWorld #2
43
 modify HelloWorld.java
 firstly get the references declared in main.xml
 then add event response for Button
Contact Us On : vibranttechnologies.co.in
Beyond HelloWorld #3
44
 Finished!
 Run->Run as->Android Application
 Quite easy, isn’t it?
Contact Us On : vibranttechnologies.co.in
Thank You
45 Contact Us On : vibranttechnologies.co.in

More Related Content

What's hot

Android By Vipin
Android By VipinAndroid By Vipin
Android By Vipin
Vipin Mundayad
 
Evolution of Android Operating System and it’s Versions
Evolution of Android Operating System and it’s VersionsEvolution of Android Operating System and it’s Versions
Evolution of Android Operating System and it’s Versions
ijtsrd
 
Android..overwiew
Android..overwiewAndroid..overwiew
Android..overwiew
Sai Teja
 
Android / Android Phones
Android / Android PhonesAndroid / Android Phones
Android / Android Phoneskevinlaurenz
 
Android application development
Android application developmentAndroid application development
Android application development
Steve Smith
 
Android Operating System Architecture
Android Operating System ArchitectureAndroid Operating System Architecture
Android Operating System Architecture
DINESH KUMAR ARIVARASAN
 
Android and android phones
Android and android phonesAndroid and android phones
Android and android phonesHanna Leah
 
ANDROID
ANDROIDANDROID
ANDROID
Ranjan Som
 
Introduction To Android
Introduction To AndroidIntroduction To Android
Introduction To Android
ma-polimi
 
Introduction to Mobile Application Development
Introduction to Mobile Application DevelopmentIntroduction to Mobile Application Development
Introduction to Mobile Application Development
Senthil Kanth
 
Android and its feature
Android and its featureAndroid and its feature
Android and its feature
Shubham Kumar
 
Android
AndroidAndroid
Android
aktash12
 
Introduction to Andriod
Introduction to AndriodIntroduction to Andriod
Introduction to Andriod
Kaviarasu D
 
Android understanding
Android understandingAndroid understanding
Android understanding
Ramesh Rao
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & Components
Akash Bisariya
 

What's hot (20)

Android By Vipin
Android By VipinAndroid By Vipin
Android By Vipin
 
Evolution of Android Operating System and it’s Versions
Evolution of Android Operating System and it’s VersionsEvolution of Android Operating System and it’s Versions
Evolution of Android Operating System and it’s Versions
 
Android..overwiew
Android..overwiewAndroid..overwiew
Android..overwiew
 
Android / Android Phones
Android / Android PhonesAndroid / Android Phones
Android / Android Phones
 
Android
AndroidAndroid
Android
 
Android application development
Android application developmentAndroid application development
Android application development
 
Android Operating System Architecture
Android Operating System ArchitectureAndroid Operating System Architecture
Android Operating System Architecture
 
Android and android phones
Android and android phonesAndroid and android phones
Android and android phones
 
Android
AndroidAndroid
Android
 
ANDROID
ANDROIDANDROID
ANDROID
 
Introduction To Android
Introduction To AndroidIntroduction To Android
Introduction To Android
 
Introduction to Mobile Application Development
Introduction to Mobile Application DevelopmentIntroduction to Mobile Application Development
Introduction to Mobile Application Development
 
Android
Android Android
Android
 
Android and its feature
Android and its featureAndroid and its feature
Android and its feature
 
Android os
Android osAndroid os
Android os
 
Android Report
Android ReportAndroid Report
Android Report
 
Android
AndroidAndroid
Android
 
Introduction to Andriod
Introduction to AndriodIntroduction to Andriod
Introduction to Andriod
 
Android understanding
Android understandingAndroid understanding
Android understanding
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & Components
 

Viewers also liked

Hibernate
HibernateHibernate
Presentation hibernate nfe103
Presentation hibernate nfe103Presentation hibernate nfe103
Presentation hibernate nfe103MRamo2s
 
Green Communities_ OSH
Green Communities_ OSHGreen Communities_ OSH
Green Communities_ OSHThomas Hammer
 
своя игра космические дали
своя игра космические далисвоя игра космические дали
своя игра космические дали
Надежда Шеставина
 
Život bez ograničenja
Život bez ograničenjaŽivot bez ograničenja
Život bez ograničenja
Zlatiborski krug
 
Trabajo 2 gestor de inventarios
Trabajo 2 gestor de inventariosTrabajo 2 gestor de inventarios
Trabajo 2 gestor de inventarios
Katty Valdivieso
 
Saajhi Stepping Pump Whitepaper v2
Saajhi Stepping Pump Whitepaper v2Saajhi Stepping Pump Whitepaper v2
Saajhi Stepping Pump Whitepaper v2Sam Rulli
 
Stay safe online
Stay safe onlineStay safe online
Stay safe online
Ljubica Ruzinska
 
hibernate with JPA
hibernate with JPAhibernate with JPA
hibernate with JPA
Mohammad Faizan
 
Comunicación mkt
Comunicación mktComunicación mkt
Comunicación mkt
Gurunet2000
 
Introduction à Hibernate p.1
Introduction à Hibernate p.1Introduction à Hibernate p.1
Introduction à Hibernate p.1
ATHMAN HAJ-HAMOU
 
FAHR - Jenn Lim - Delivering Happiness
FAHR - Jenn Lim - Delivering HappinessFAHR - Jenn Lim - Delivering Happiness
FAHR - Jenn Lim - Delivering Happiness
Delivering Happiness
 

Viewers also liked (16)

Hibernate
HibernateHibernate
Hibernate
 
Hibernate 3
Hibernate 3Hibernate 3
Hibernate 3
 
Presentation hibernate nfe103
Presentation hibernate nfe103Presentation hibernate nfe103
Presentation hibernate nfe103
 
Green Communities_ OSH
Green Communities_ OSHGreen Communities_ OSH
Green Communities_ OSH
 
CBM Cat 2016e
CBM Cat 2016eCBM Cat 2016e
CBM Cat 2016e
 
своя игра космические дали
своя игра космические далисвоя игра космические дали
своя игра космические дали
 
StartGo15GENX&GENY
StartGo15GENX&GENYStartGo15GENX&GENY
StartGo15GENX&GENY
 
Život bez ograničenja
Život bez ograničenjaŽivot bez ograničenja
Život bez ograničenja
 
Trabajo 2 gestor de inventarios
Trabajo 2 gestor de inventariosTrabajo 2 gestor de inventarios
Trabajo 2 gestor de inventarios
 
Saajhi Stepping Pump Whitepaper v2
Saajhi Stepping Pump Whitepaper v2Saajhi Stepping Pump Whitepaper v2
Saajhi Stepping Pump Whitepaper v2
 
Stay safe online
Stay safe onlineStay safe online
Stay safe online
 
hibernate with JPA
hibernate with JPAhibernate with JPA
hibernate with JPA
 
Comunicación mkt
Comunicación mktComunicación mkt
Comunicación mkt
 
Introduction à Hibernate p.1
Introduction à Hibernate p.1Introduction à Hibernate p.1
Introduction à Hibernate p.1
 
NASA Contribution Aeronautics Volume 1
NASA Contribution Aeronautics Volume 1NASA Contribution Aeronautics Volume 1
NASA Contribution Aeronautics Volume 1
 
FAHR - Jenn Lim - Delivering Happiness
FAHR - Jenn Lim - Delivering HappinessFAHR - Jenn Lim - Delivering Happiness
FAHR - Jenn Lim - Delivering Happiness
 

Similar to Android development tutorial

Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
Mohammad Taj
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android
Ranjith Kumar
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
zeelpatel0504
 
Android introduction
Android introductionAndroid introduction
Android introduction
mcanotes
 
Getting started with android
Getting started with androidGetting started with android
Getting started with android
amitgb
 
Android : Revolutionizing Mobile Devices
Android : Revolutionizing Mobile DevicesAndroid : Revolutionizing Mobile Devices
Android : Revolutionizing Mobile DevicesRitesh Puthran
 
Introduction to Android.ppt
Introduction to Android.pptIntroduction to Android.ppt
Introduction to Android.ppt
ahmadfaisal744721
 
An introduction to Android
An introduction to AndroidAn introduction to Android
An introduction to Android
Rajesh Jambukia
 
Android
AndroidAndroid
Mobile Android and Network
Mobile Android and NetworkMobile Android and Network
Mobile Android and NetworkPadma Sankar
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
Siva Kumar reddy Vasipally
 
Android technology
Android technologyAndroid technology
Android technologyDhruv Modh
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdf
AbdullahMunir32
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-ass
ARVIND SARDAR
 
Curso de Desenvolvimento Mobile - Android - Stack
Curso de Desenvolvimento Mobile - Android - StackCurso de Desenvolvimento Mobile - Android - Stack
Curso de Desenvolvimento Mobile - Android - StackJackson F. de A. Mafra
 
Android seminar-report-body.doc
Android seminar-report-body.docAndroid seminar-report-body.doc
Android seminar-report-body.doc
Deepak Yadav
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
Siva Kumar reddy Vasipally
 
Android seminar report
Android seminar reportAndroid seminar report
Android seminar report
dgpune
 

Similar to Android development tutorial (20)

Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android introduction
Android introductionAndroid introduction
Android introduction
 
Getting started with android
Getting started with androidGetting started with android
Getting started with android
 
Android : Revolutionizing Mobile Devices
Android : Revolutionizing Mobile DevicesAndroid : Revolutionizing Mobile Devices
Android : Revolutionizing Mobile Devices
 
Introduction to Android.ppt
Introduction to Android.pptIntroduction to Android.ppt
Introduction to Android.ppt
 
An introduction to Android
An introduction to AndroidAn introduction to Android
An introduction to Android
 
Android
AndroidAndroid
Android
 
Android
AndroidAndroid
Android
 
Mobile Android and Network
Mobile Android and NetworkMobile Android and Network
Mobile Android and Network
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
Android
AndroidAndroid
Android
 
Android technology
Android technologyAndroid technology
Android technology
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdf
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-ass
 
Curso de Desenvolvimento Mobile - Android - Stack
Curso de Desenvolvimento Mobile - Android - StackCurso de Desenvolvimento Mobile - Android - Stack
Curso de Desenvolvimento Mobile - Android - Stack
 
Android seminar-report-body.doc
Android seminar-report-body.docAndroid seminar-report-body.doc
Android seminar-report-body.doc
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
 
Android seminar report
Android seminar reportAndroid seminar report
Android seminar report
 

More from Vibrant Technologies & Computers

Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5
Vibrant Technologies & Computers
 
SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables  SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables
Vibrant Technologies & Computers
 
SQL- Introduction to MySQL
SQL- Introduction to MySQLSQL- Introduction to MySQL
SQL- Introduction to MySQL
Vibrant Technologies & Computers
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
Vibrant Technologies & Computers
 
ITIL - introduction to ITIL
ITIL - introduction to ITILITIL - introduction to ITIL
ITIL - introduction to ITIL
Vibrant Technologies & Computers
 
Salesforce - Introduction to Security & Access
Salesforce -  Introduction to Security & Access Salesforce -  Introduction to Security & Access
Salesforce - Introduction to Security & Access
Vibrant Technologies & Computers
 
Data ware housing- Introduction to olap .
Data ware housing- Introduction to  olap .Data ware housing- Introduction to  olap .
Data ware housing- Introduction to olap .
Vibrant Technologies & Computers
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
Vibrant Technologies & Computers
 
Data ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housingData ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
Salesforce - classification of cloud computing
Salesforce - classification of cloud computingSalesforce - classification of cloud computing
Salesforce - classification of cloud computing
Vibrant Technologies & Computers
 
Salesforce - cloud computing fundamental
Salesforce - cloud computing fundamentalSalesforce - cloud computing fundamental
Salesforce - cloud computing fundamental
Vibrant Technologies & Computers
 
SQL- Introduction to PL/SQL
SQL- Introduction to  PL/SQLSQL- Introduction to  PL/SQL
SQL- Introduction to PL/SQL
Vibrant Technologies & Computers
 
SQL- Introduction to advanced sql concepts
SQL- Introduction to  advanced sql conceptsSQL- Introduction to  advanced sql concepts
SQL- Introduction to advanced sql concepts
Vibrant Technologies & Computers
 
SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data   SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data
Vibrant Technologies & Computers
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set OperationsSQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
Vibrant Technologies & Computers
 
Sas - Introduction to designing the data mart
Sas - Introduction to designing the data martSas - Introduction to designing the data mart
Sas - Introduction to designing the data mart
Vibrant Technologies & Computers
 
Sas - Introduction to working under change management
Sas - Introduction to working under change managementSas - Introduction to working under change management
Sas - Introduction to working under change management
Vibrant Technologies & Computers
 
SAS - overview of SAS
SAS - overview of SASSAS - overview of SAS
SAS - overview of SAS
Vibrant Technologies & Computers
 
Teradata - Architecture of Teradata
Teradata - Architecture of TeradataTeradata - Architecture of Teradata
Teradata - Architecture of Teradata
Vibrant Technologies & Computers
 
Teradata - Restoring Data
Teradata - Restoring Data Teradata - Restoring Data
Teradata - Restoring Data
Vibrant Technologies & Computers
 

More from Vibrant Technologies & Computers (20)

Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5
 
SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables  SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables
 
SQL- Introduction to MySQL
SQL- Introduction to MySQLSQL- Introduction to MySQL
SQL- Introduction to MySQL
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
 
ITIL - introduction to ITIL
ITIL - introduction to ITILITIL - introduction to ITIL
ITIL - introduction to ITIL
 
Salesforce - Introduction to Security & Access
Salesforce -  Introduction to Security & Access Salesforce -  Introduction to Security & Access
Salesforce - Introduction to Security & Access
 
Data ware housing- Introduction to olap .
Data ware housing- Introduction to  olap .Data ware housing- Introduction to  olap .
Data ware housing- Introduction to olap .
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
 
Data ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housingData ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housing
 
Salesforce - classification of cloud computing
Salesforce - classification of cloud computingSalesforce - classification of cloud computing
Salesforce - classification of cloud computing
 
Salesforce - cloud computing fundamental
Salesforce - cloud computing fundamentalSalesforce - cloud computing fundamental
Salesforce - cloud computing fundamental
 
SQL- Introduction to PL/SQL
SQL- Introduction to  PL/SQLSQL- Introduction to  PL/SQL
SQL- Introduction to PL/SQL
 
SQL- Introduction to advanced sql concepts
SQL- Introduction to  advanced sql conceptsSQL- Introduction to  advanced sql concepts
SQL- Introduction to advanced sql concepts
 
SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data   SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set OperationsSQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
 
Sas - Introduction to designing the data mart
Sas - Introduction to designing the data martSas - Introduction to designing the data mart
Sas - Introduction to designing the data mart
 
Sas - Introduction to working under change management
Sas - Introduction to working under change managementSas - Introduction to working under change management
Sas - Introduction to working under change management
 
SAS - overview of SAS
SAS - overview of SASSAS - overview of SAS
SAS - overview of SAS
 
Teradata - Architecture of Teradata
Teradata - Architecture of TeradataTeradata - Architecture of Teradata
Teradata - Architecture of Teradata
 
Teradata - Restoring Data
Teradata - Restoring Data Teradata - Restoring Data
Teradata - Restoring Data
 

Recently uploaded

Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
ViralQR
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 

Recently uploaded (20)

Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 

Android development tutorial

  • 1. Welcome to Vibrant Technologies and Computers --------- Hibernate Training course 1
  • 2. 2
  • 3. Contents 3  What’s Android  Android architecture  Android software development  ‘Hello World’ on Android  More… Contact Us On : vibranttechnologies.co.in
  • 4. Android Phones 4 Motorola CliqHTC G1 HTC HeroSamsung i7500 Samsung Moment Motorola DroidHTC Magic HTC Tattoo Sony X10 Contact Us On : vibranttechnologies.co.in
  • 5. Mobile Devices 5  It’s obvious that mobile device may take the place of PC in future  OS plays a vital part Processor Device Embedded OS Middleware Apps Contact Us On : vibranttechnologies.co.in
  • 6. 6
  • 7. OHA and Android 7  OHA(Open Handset Alliance) is a group of 71 technology and mobile companies, including Google, Intel, Dell, HTC and China Mobile…  OHA’s aim:  accelerate innovation in mobile phones  offer consumers a richer, less expensive, and better mobile experience  OHA developed Android™, the first complete, open, and free mobile platform  OHA was initially called up by Google, and Google is the ‘captain’ Contact Us On : vibranttechnologies.co.in
  • 8. What’s Android 8  Generally, Android is a software stack for mobile devices that includes an operating system, middleware and key applications  Android is based on JAVA and all its applications are developed in JAVA  The JAVA VM, known as Dalvik, is highly customized and optimized for mobile devices  Android SDK offers rich tools for android application development and many useful APIs。 The core of Android Contact Us On : vibranttechnologies.co.in
  • 9. Android Features #1 9  Application framework enabling reuse and replacement of components  Optimized Java virtual machine: Dalvik  Optimized Graphics Processing, supporting 2D and 3D graphics(OpenGL ES 1.0 )  Integrated open source web browser: WebKit  SQLite for structured data storage Contact Us On : vibranttechnologies.co.in
  • 10. Android Features #2 10  Multimedia capability, supporting varieties of audio, video and still image formats  GSM Telephony  Bluetooth, EDGE, 3G and Wi-Fi support  Camera, GPS, compass, accelerometer and other sensors support  Rich development environment, including an emulator, debugging tools, memory probe tools, log tools and powerful eclipse plugins Hardware dependent Contact Us On : vibranttechnologies.co.in
  • 11. 11 Contact Us On : vibranttechnologies.co.in
  • 12. Linux Kernel 12  Note that Android based on a Linux kernel not a Linux OS  Supplies Security, Memory management, Process management, Network stack and Driver model  Acts as an abstraction layer between the hardware and the rest of the software stack Contact Us On : vibranttechnologies.co.in
  • 13. Libraries 13  Run in system background  Using C/C++ Language  4 types of Libraries  Bionic Libc, system C libraries  Function Libraries, supporting multimedia, web browser, SQLite...  Native Servers  Hardware Abstraction Libraries Contact Us On : vibranttechnologies.co.in
  • 14. Core Libraries 14  System C library, the standard C system library, tuned for embedded Linux-based devices  Media Libraries, support playback and recording of many popular audio and video formats, as well as image files, including MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG  Surface Manager, manages access to the display subsystem and seamlessly composites 2D and 3D graphic layers from multiple applications  WebKit, a modern web browser engine which powers both the Android browser and an embeddable web view  SGL, the underlying 2D graphics engine  3D libraries, an implementation based on OpenGL ES 1.0 APIs  FreeType , bitmap and vector font rendering  SQLite , a powerful and lightweight relational database engine Contact Us On : vibranttechnologies.co.in
  • 15. Andoid Runtime 15  The core of Android platform  Dalvik Virtual Machine  Register-based  Executes files in the Dalvik Executable (.dex) format  Java core Libraries  Provides most of the functionality of the Java programming language. Contact Us On : vibranttechnologies.co.in
  • 16. Android Runtime (cont.) 16  The functions of Java core libraries rely on the Dalvik VM and the underlying Linux kernel  Multiple Dalvik VMs may run at the same time  Every Android application runs in its own process, with its own instance of the Dalvik virtual machine  The "dx" tool in Android SDK can transform compiled JAVA class into the .dex format Contact Us On : vibranttechnologies.co.in
  • 17. Dalvik Virtual Machine 17  Android custom implementation virtual machine  Provides application portability and runtime consistency  Runs optimized file format (.dex) and Dalvik bytecode  Java .class / .jar files converted to .dex at build time  Designed for embedded environment  Supports multiple virtual machine processes per device  Highly CPU-optimized bytecode interpreter  Efficiently Using runtime memory  Core Libraries  Core APIs for Java language provide a powerful, yet simple and familiar development platform Contact Us On : vibranttechnologies.co.in
  • 18. DVM vs. JVM 18  DVM  Google  Dalvik executable  Only supports a subset of standard Java Library  JVM  Sun  Java bytecode  Some worries that Java world may be divided into different communities, each has its own Java standard Contact Us On : vibranttechnologies.co.in
  • 19. Application Framework 19  Simplify the reuse of components  Applications can publish their capabilities and any other application may then make use of those capabilities  Applications is a set of services and systems, include  Views system, content providers, resources manager and so on Contact Us On : vibranttechnologies.co.in
  • 20. Application Framework (cont.) 20  Activity Manager, manages the lifecycle of applications and provides a common navigation backstack  Notification Manager, enables all applications to display custom alerts in the status bar  Resource Manager, providing access to non-code resources such as localized strings, graphics, and layout files  Content Providers, access data from other applications (such as Contacts), or to share their own data  Views, used to build an application, including lists, grids, text boxes, buttons, and even an embeddable web browser Contact Us On : vibranttechnologies.co.in
  • 21. Applications 21  A set of core applications shipped with Android platform  an email client, SMS program, calendar, maps, browser, contacts, and others  All written in Java  Our applications are in the same level as these applications Contact Us On : vibranttechnologies.co.in
  • 22. Development Environment  IDE – Eclipse  Eclipse plug-in - ADT  Software Development Kit (SDK)  Android Emulator  Debugger Contact Us On : vibranttechnologies.co.in22
  • 23. Setup Android SDK 23  Download Android SDK and extract the zip file to an arbitrary folder  http://androidappdocs.appspot.com/sdk/index.html  E.g.: extract to C:  The SDK will be used by ADT in eclipse Contact Us On : vibranttechnologies.co.in
  • 24. Setup ADT plugin 24  Install Eclipse ADT plugin  Eclipse must be J2EE edition, 3.5 recommended  Update site: https://dl- ssl.google.com/android/eclip se/  Install all the plugins in the repository  Restart needed after installation Contact Us On : vibranttechnologies.co.in
  • 25. Configure ADT Plugin 25  Open eclipse Window->Preferences, select Android  Setup the SDK location as the folder where you extracted the downloaded SDK zip file Contact Us On : vibranttechnologies.co.in
  • 26. Setup SDK APIs 26  Open Window->Android SDK and AVD Manager  Click Available Packages and then choose proper APIs to install, the latest may be the best Contact Us On : vibranttechnologies.co.in
  • 27. Setup Emulators 27  After SDK APIs installation, click Virtual Devices  Click new, there will be a dialog  input a name  choose a running target and a skin  specify the SD card size Contact Us On : vibranttechnologies.co.in
  • 28. Ready… 28  Now you may start the AVD  Click start to start the new AVD  First start-up may take a very long time Contact Us On : vibranttechnologies.co.in
  • 29. Create a new Android Project 29  Open File->New- >Android project  Project name  Build Target  Application name  Package name  Create Activity Contact Us On : vibranttechnologies.co.in
  • 30. Hello World Project 30  src: source folder  gen: SDK generated file  android 2.2: reference lib  assets: binary resources  res: resource files and resource description files  AndroidManifest.xml: application description file  default.properties: project properties file Contact Us On : vibranttechnologies.co.in
  • 31. Say Hello World 31  modify HelloWorld.java Contact Us On : vibranttechnologies.co.in
  • 32. Run Hello World 32  Select HelloWorld Project, Run->Run as->Android Application  ADT will start a proper AVD and run HelloWorld app on it Contact Us On : vibranttechnologies.co.in
  • 33. Behind HelloWorld #1 33  R.java, generated by Android SDK, represents all the resources of the app. resources are all in res folder  resources are pre-compiled into binary format /* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package sample.hello; public final class R { public static final class attr { } public static final class drawable { public static final int icon=0x7f020000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040001; public static final int hello=0x7f040000; } } Contact Us On : vibranttechnologies.co.in
  • 34. Linear Layout Behind HelloWorld #2 34  res/layout , contains layout declarations of the app, in XML format, UIs are built according to the layout file main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> TextView, display static text A reference to String resource ‘hello’Contact Us On : vibranttechnologies.co.in
  • 35. referenced in res/layout/mai n.xml Behind HelloWorld #3 35  res/values, contains string declarations or other values(e.g.:colors) of the app  string.xml, contains string resources <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, HelloWorld!</string> <string name="app_name">HelloWorld</string> </resources> referenced in AndroidManifest.xml Contact Us On : vibranttechnologies.co.in
  • 36. Behind HelloWorld #4 36  res/drawable, contains all image resources  folders may have suffixes, app will choose the most suitable one, so do the other resources  three folders: drawable-ldpi, drawable-hdpi, drawable-mdpi, each contains an icon.png file  app will choose the proper icon according to the device DPI  reference name:@drawable/icon  other folders we may use in future  menu, anim (animation), xml ( preference and searchable) Contact Us On : vibranttechnologies.co.in
  • 37. Behind HelloWorld #5 37  AndroidManifest.xml describe the application  declare app’s name, version, icon, permission, etc…  declare the application's components: activity, service ,receiver or provider <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="sample.hello" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".HelloWorld" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER”/> </intent-filter> </activity> </application> <uses-sdk android:minSdkVersion="8" /> </manifest> Contact Us On : vibranttechnologies.co.in
  • 38. Core Components-Activity #1 38  Basically, An activity presents a visual user interface for one focused endeavor the user can undertake  An application might consist of just one activity or several, each Activity is derived from android.app.Activity and should be declared in AndroidManifest.xml file  Each activity is given a default window to draw in, the window may be full screen or smaller and on top of other window  The visual content of the window is provided by a hierarchy of views — objects derived from the base View class  Activity.setContentView() method is used to set a certain hierarchy of view objects Contact Us On : vibranttechnologies.co.in
  • 39. Core Components-Activity #2 39  Activities are activated by asynchronous messages called intents  An intent is an Intent object that holds the content of the message  The action being requested or the URI of the data to act on  The <intent-filter> label in AndroidManifest.xml file specifies the Intent that can start the Activity  declares the main activity, it will be started automatically when the app starts  An activity is launched (or given something new to do) by passing an Intent object to Context.startActivity() or Activity.startActivityForResult() Contact Us On : vibranttechnologies.co.in
  • 40. Activity lifecycle 40 Contact Us On : vibranttechnologies.co.in
  • 41. Other Core Components 41  Service  A service doesn't have a visual user interface, runs in the background for a period of time  Broadcast receivers  a component that does nothing but receive and react to broadcast announcements  Content providers  A content provider makes a specific set of the application's data available to other applications.  The data can be stored in the file system, in an SQLite database, or in any other manner that makes sense Contact Us On : vibranttechnologies.co.in
  • 42. Beyond HelloWorld #1 42  Build up an app that you can input your greetings and display your greetings  Input: EditText  Display: TextView  Of course, we have to add an button  Edit res/layout/main.xml file to add these components  each has an android:id property, used to reference it in code Contact Us On : vibranttechnologies.co.in
  • 43. Beyond HelloWorld #2 43  modify HelloWorld.java  firstly get the references declared in main.xml  then add event response for Button Contact Us On : vibranttechnologies.co.in
  • 44. Beyond HelloWorld #3 44  Finished!  Run->Run as->Android Application  Quite easy, isn’t it? Contact Us On : vibranttechnologies.co.in
  • 45. Thank You 45 Contact Us On : vibranttechnologies.co.in