SlideShare une entreprise Scribd logo
1  sur  50
Télécharger pour lire hors ligne
Sathish.R
2

o
o
o
o

Introduction About
Android.
IDE Introduction.
Setting Up
Environment.
Dalvik Virtual
Machine.

13 November, 2013

Android
Introduction
Session 2
Tenet Technetronics
3

o

Introduction About
Android.

13 November, 2013

Android
Introduction
Session 2
Tenet Technetronics
4

13 November, 2013

What is Android?
o
o
o
o

o

Operating system based on Linux.
Open Source by Search Giant.
Apps typically written in Java.
Apps run on the Dalvik Virtual Machine(DVM).
November 2007, Open Handset Alliance formed to
develop open standards for mobile devices.

Open Handset Alliance:
o

Google formed a group of hardware, software, and
telecommunication companies with the goal of
Tenet Technetronics
contributing to Android development
5

13 November, 2013

Android

Tenet Technetronics
6

13 November, 2013

History
o
o
o

Android Inc. was founded by Andy Rubin, Rich miner, Nick
sears and Chris White in 2003.
Acquired by Google in July 2005.
The first android phone was HTC G1 Dream(with cupcake)
Released in October 2008.

Tenet Technetronics
Android Evolution

7

13 November, 2013

Tenet Technetronics
8

13 November, 2013

Android Features

o

o
o
o
o
o
o
o
o
o

Open Source framework
Very simple.
Availability of Apps.
Supports 2D,3D graphics.
Java support.
Easy to customize.
Better Notification System(email and various widgets).
SQLite Database.
Bluetooth, EDGE,3G,4G and Wi-Fi .
Camera ,GPS,Compass, and accelerometer.
Tenet Technetronics
Framework

9

13 November, 2013

Tenet Technetronics
10

13 November, 2013

Application Components





Activities – visual user interface focused on a
single thing a user can do
Services – no visual interface – they run in the
background
Broadcast Receivers – receive and react to
broadcast announcements
Content Providers – allow data exchange
between applications
Tenet Technetronics
11

o

o

Introduction About
Android.
IDE Introduction.

13 November, 2013

Android
Introduction
Session 2
Tenet Technetronics
12

13 November, 2013

IDE: (Integrated
Development Environment)
o

Programming Environment that consists of






o

o

A Code Editor,
A compiler,
A Debugger,
A GUI builder.

User-Friendly Framework.
Eclipse, Net beans, Android Studio,
Processing, Xamarin Studio, etc.,
Tenet Technetronics
13

o
o
o

Introduction About
Android.
IDE Introduction.
Setting Up
Environment.

13 November, 2013

Android
Introduction
Session 2
Tenet Technetronics
14

13 November, 2013

Development Tools:
o
o
o
o
o

Java JDK.
Eclipse or Net beans.
Android Development Tools(ADT Plugin).
Android latest SDK
Programming Languages
 Java
Tenet Technetronics
15

13 November, 2013

Installation
o

Run Eclipse.chm file and proceed with the
instructions

Tenet Technetronics
16

o
o
o
o

Introduction About
Android.
IDE Introduction.
Setting Up
Environment.
Dalvik Virtual
Machine.

13 November, 2013

Android
Introduction
Session 2
Tenet Technetronics
17

13 November, 2013

Dalvik Virtual Machine
o
o
o
o

o

Java-” write once, run anywhere”.
Software that runs the apps on
Android devices.
Invented by Dan Bornstein(Google).
Register-based.
A tool called dx is used to convert
some (but not all) Java .class files
into the .dex (Dalvik
Executable)format.
Tenet Technetronics
18

13 November, 2013

DVM
o
o

run on a slow CPU
Multiple classes are included in a single
.dex file.

source code

Java compiler

.class file

dx
(conversion tool)

.dex file
(Dalvik
executable)
Tenet Technetronics
19

o

o
o

o
o
o

First Application
(Hello World)
Layouts &
Drawables
Activity Navigation
View Group &
Views
Manifest &
Permissions
Menus & Tabs

13 November, 2013

Applications

Tenet Technetronics
20

o

o
o

o
o
o

First Application
(Hello World)
Layouts &
Drawables
Activity Navigation
View Group &
Views
Manifest &
Permissions
Menus & Tabs

13 November, 2013

Applications

Tenet Technetronics
21

13 November, 2013

Select File -> New -> Other -> Android -> Android Project

Tenet Technetronics
22

13 November, 2013

Tenet Technetronics
23

13 November, 2013

Tenet Technetronics
24

13 November, 2013

Tenet Technetronics
25

13 November, 2013

Tenet Technetronics
26

13 November, 2013

Tenet Technetronics
27

o

o
o

o
o
o

First Application
(Hello World)
Layouts &
Drawables
Activity Navigation
View Group &
Views
Manifest &
Permissions
Menus & Tabs

13 November, 2013

Applications

Tenet Technetronics
28

13 November, 2013

Layouts
o
o

o
o

Linear Layout
Relative Layout
Frame Layout
Table Layout

Tenet Technetronics
29

13 November, 2013

Linear Layout
oAll

the elements are
displayed in a linear
fashion
oHorizontally or Vertically

Tenet Technetronics
30

13 November, 2013

Relative Layout
o

o

Designed to display
child View controls in
relation to each other
Every element
arranges itself relative
to other elements or a
parent element.
Tenet Technetronics
31

13 November, 2013

Table Layout
o

o

Designed to organize
child View controls
into rows and columns.
Divide your layouts
into rows and
columns.
Tenet Technetronics
32

13 November, 2013

Frame Layout
oDisplay

only a single UI
element at a time, or multiple
UI elements within Frame
Layout
oEach element will be
positioned based on the top
left of the screen.

Tenet Technetronics
33

13 November, 2013

Drawables
o

o
o

referencing an image
file from your project
resources.
Supported file types are
PNG and JPG.
Background image for
Layout, button, etc..
Tenet Technetronics
34

o

o
o

o
o
o

First Application
(Hello World)
Layouts &
Drawables
Activity Navigation
View Group &
Views
Manifest &
Permissions
Menus & Tabs

13 November, 2013

Applications

Tenet Technetronics
35

13 November, 2013

Activity Navigation
o
o
o

Moving From one Activity to another.
Pass values from one activity to another
Activity (Intents).
Example.

Tenet Technetronics
36

o

o
o

o
o
o

First Application
(Hello World)
Layouts &
Drawables
Activity Navigation
View Group &
Views
Manifest &
Permissions
Menus & Tabs

13 November, 2013

Applications

Tenet Technetronics
37

13 November, 2013

Views And View Groups
we can declare the layout in two ways:
o

o

Programmatically
Declaring the widgets or UI elements in
XML.

The layout consists of Views and View
Groups.
Tenet Technetronics
38

13 November, 2013

View Groups
o
o

o

Layouts are called View groups
In which the child Views or View Groups
are arranged either vertically or
horizontally.
Example
Tenet Technetronics
39

o

o
o

o
o
o

First Application
(Hello World)
Layouts &
Drawables
Activity Navigation
View Group &
Views
Manifest &
Permissions
Menus & Tabs

13 November, 2013

Applications

Tenet Technetronics
40

13 November, 2013

Manifest and Permissions
o

o

A resource file which contains all the details
needed by the android system about the
application.
This is an xml file which must be named as
AndroidManifest.xml and placed at application
root.

Tenet Technetronics
41

13 November, 2013

Android Manifest
It allows us to define
o The packages, API, libraries needed for the
application.
o Basic building blocks of application like
activities, services and etc.
o Details about permissions.
o Set of classes needed before launch.
Tenet Technetronics
42

13 November, 2013

Elements of
AndroidManifest.xml
o
o
o
o

o
o
o
o

o
o

uses-permission
permission
permission-group
permission-tree
Instrumentation
uses-sdk
uses-configuration
uses-feature
supports-screens, compatible-screens
supports-gl-texture
Tenet Technetronics
43

13 November, 2013

Elements of Manifest
uses-permission  purpose of security.
o permission  Access Control.
o uses- sdk the platform compatibility.
o uses-configuration  set of hardware and
software requirement.
o supports-screens,
and compatible-screens screen
configuration mode and size of the screen
o

Tenet Technetronics
44

13 November, 2013

Example

Tenet Technetronics
45

o

o
o

o
o
o

First Application
(Hello World)
Layouts &
Drawables
Activity Navigation
View Group &
Views
Manifest &
Permissions
Menus & Tabs

13 November, 2013

Applications

Tenet Technetronics
46

13 November, 2013

Menu
o
o
o

A common user interface component in
many types of applications.
Interface for managing the items in a
menu.
If you're developing for Android 2.3 or
lower, users can reveal the options menu
panel by pressing the Menu button.
Tenet Technetronics
47

13 November, 2013

Menu
o

Context menus


o

Options menus


o

a floating list of menu items that appears when a user
touches and holds a particular item displayed in the view

the one that appears when a user touches the menu
button on the mobile.

Sub menus


a floating list of menu items that appears when the user
touches a menu item that contains a nested menu
Tenet Technetronics
48

13 November, 2013

Tabs
o
o

o

A nice way to present multiple
thing on a Single Screen
Tabs in the action bar make it
easy to explore and switch
between different views or
functional aspects.
Example
Tenet Technetronics
49

13 November, 2013

Tenet Technetronics
50

13 November, 2013

Tenet Technetronics

Contenu connexe

Similaire à Android introduction session 1

Android bluetooth robot
Android  bluetooth robotAndroid  bluetooth robot
Android bluetooth robotSathish Raju
 
Android overview
Android overviewAndroid overview
Android overviewHas Taiar
 
Engineering and Industrial Mobile Application (APP) Development
Engineering and Industrial Mobile Application (APP) DevelopmentEngineering and Industrial Mobile Application (APP) Development
Engineering and Industrial Mobile Application (APP) DevelopmentLiving Online
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easyLars Vogel
 
First Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting IntroductionFirst Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting IntroductionCesar Augusto Nogueira
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development pptsaitej15
 
Build Mobile Application In Android
Build Mobile Application In AndroidBuild Mobile Application In Android
Build Mobile Application In Androiddnnddane
 
android level 1
android level 1android level 1
android level 1DevMix
 
Android development training programme Day 1
Android development training programme Day 1Android development training programme Day 1
Android development training programme Day 1DHIRAJ PRAVIN
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1Kainda Kiniel Daka
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidzeelpatel0504
 
OS in mobile devices [Android]
OS in mobile devices [Android]OS in mobile devices [Android]
OS in mobile devices [Android]Yatharth Aggarwal
 

Similaire à Android introduction session 1 (20)

Android bluetooth robot
Android  bluetooth robotAndroid  bluetooth robot
Android bluetooth robot
 
Android overview
Android overviewAndroid overview
Android overview
 
Engineering and Industrial Mobile Application (APP) Development
Engineering and Industrial Mobile Application (APP) DevelopmentEngineering and Industrial Mobile Application (APP) Development
Engineering and Industrial Mobile Application (APP) Development
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easy
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Android Intro
Android IntroAndroid Intro
Android Intro
 
First Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting IntroductionFirst Steps with Android - An Exciting Introduction
First Steps with Android - An Exciting Introduction
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
 
Build Mobile Application In Android
Build Mobile Application In AndroidBuild Mobile Application In Android
Build Mobile Application In Android
 
android level 1
android level 1android level 1
android level 1
 
SensActions-Report
SensActions-ReportSensActions-Report
SensActions-Report
 
Android development training programme Day 1
Android development training programme Day 1Android development training programme Day 1
Android development training programme Day 1
 
MOTODEV Studio for Android
MOTODEV Studio for AndroidMOTODEV Studio for Android
MOTODEV Studio for Android
 
Android app development
Android app developmentAndroid app development
Android app development
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Android TCJUG
Android TCJUGAndroid TCJUG
Android TCJUG
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android platform
Android platform Android platform
Android platform
 
OS in mobile devices [Android]
OS in mobile devices [Android]OS in mobile devices [Android]
OS in mobile devices [Android]
 

Dernier

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Dernier (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Android introduction session 1