SlideShare une entreprise Scribd logo
1  sur  60
Introduction
What is a Software?


A collection of computer programs and related data that
provide the instructions for telling a computer what to do and
how to do it making imaginary into reality .

patel.nauka@codefruxtechnology.com
SMART PHONES


Smartphone= PDA + Cell phone



Smartphone Features



Keyboard
Internet Access
Ability to download app & run independently
Personal Information Management
Wi-Fi
Support 3rd party app
And many more…








patel.nauka@codefruxtechnology.com
patel.nauka@codefruxtechnology.com
Software Stack


Set of programs working together to produce a result.



It consists of
1. Operating System
2. Middleware
3. Key Applications

patel.nauka@codefruxtechnology.com
Different OS available
Feature

Company

Current
Version

iOS

Android

Windows
Mobile

BlackBerry
OS

Symbian

Bada

Apple

Open
Handset
Alliance
(Google)

Microsoft

RIM

Symbian
Foundation

Samsung

4.3.3

4.0
(Phones)
4.0
(Tablets)

6.5.3

6.0.0

9.5

1.2

C++

Java

C++

C++

Programmed C, C++,
C, C++,
in
Objective-C Java

patel.nauka@codefruxtechnology.com
What is Android?


Android is a software stack for
mobile devices that includes an
operating system, middleware
and key applications.

patel.nauka@codefruxtechnology.com
WHYANDROID?


A simple and powerful SDK



No licensing, distribution, or development fees


Development over many platform Linux, Mac OS, windows



Excellent documentation



For us:
Development using Java .
 Job opportunity


patel.nauka@codefruxtechnology.com
The Birth of Android









Android Inc. founded in 2003
The key players at Android Inc. included
Andy Rubin -co-founder of Danger .Inc
Rich Miner-co-founder of Wildfire Communications, Inc.
Nick Sears - once VP at T-Mobile
Chris White - headed design and interface development at Web TV
Android Inc. acquired by Google
Google acquired the startup company Android Inc. in 2005 to start the
development of the Android Platform.
Introducing Android
A first joined project of the Open Handset Alliance (OHA)



First open, complete and free platform
Software stack open-sourced.

A generous development environment




A SDK is available to build ,compile, test and debug user applications.
Applications are developed using Java programming language
No difference between the built-in applications and the user ones
What is Open Handset Alliance?


•“… Open Handset Alliance™, a group of 85 technology and mobile
firms have come together to develop open standards for mobile devices.



Google, HTC, Sony, Dell, Intel, Motorola, Qualcomm, Samsung, LG, TMobile.....etc.



Announcement of the formation of the OHA was on 5 November 2007.
First Mobile


An early look of the SDK was released to developers on 12 November
2007.



The first commercially available Android phone was the T-Mobile
G1 (HTC Dream). In August 2008,and became available on 22
October.
Phones

sony-ericsson
experia-x10

HTC-Wildfire

Motorola Droid (X)

Nexus-S
Huawei-IDEOS-X5

Samsung Galaxy
patel.nauka@codefruxtechnology.com
Tablets

Velocity Micro Cruz

Gome FlyTouch

Acer beTouch

Cisco Android Tablet
Dawa D7

Samsung Galaxy
patel.nauka@codefruxtechnology.com
Tab
Features











Application framework enabling reuse and replacement of components
Dalvik virtual machine optimized for mobile devices
Integrated browser based on the open source WebKit engine
Optimized graphics powered by a custom 2D graphics library; 3D graphics based
on the OpenGL ES 1.0 specification (hardware acceleration optional)
SQLite for structured data storage
Media support for common audio, video, and still image formats (MPEG4, H.264,
MP3, AAC, AMR, JPG, PNG, GIF)
GSM Telephony (hardware dependent)
Bluetooth, EDGE, 3G, and WiFi (hardware dependent)
Camera, GPS, compass, and accelerometer (hardware dependent)
Rich development environment including a device emulator, tools for debugging,
memory and performance profiling, and a plugin for the Eclipse IDE

patel.nauka@codefruxtechnology.com
What you need:


Operating System:
Windows XP: (32-bit), Vista (32/64-bit), or Windows 7 (32/ 64-bit)
Mac OS X
: 10.5.8 or later (x86 only)
Linux
: Ubuntu Linux, version 8.04 or later is required.



JDK >= 5



Android SDK



Eclipse + Android Development Tools plug-in

patel.nauka@codefruxtechnology.com
Installation - JDK

patel.nauka@codefruxtechnology.com
Installation - Android SDK


Download the Android SDK from:

http://developer.android.com/sdk/


Unpack the compressed file into a location you prefer.

patel.nauka@codefruxtechnology.com
patel.nauka@codefruxtechnology.com
To create an AVD in Eclipse:
1.

Select Window > Android SDK and AVD Manager.
The Android SDK and AVD Manager displays.

1.

Make sure the entry for Virtual Devices is selected and click
New.
The Create new AVD window displays.

1.

Enter a Name for the AVD.

2.

Select Android APIs (API level 8) as the Target.
Click Create AVD.
Close the Android SDK and AVD Manager.

3.
4.

patel.nauka@codefruxtechnology.com
To create the project in Eclipse:
1.
2.
3.
4.
5.
6.
7.
8.

Select File > New > Project.
Select Android Project in the Android folder and click Next.
Enter Project Name.
Select APIs (Platform 2.2) as the Build Target.
Enter the Application name.
Enter com.android as the Package name.
Enter the Activity name.
Click Finish.

patel.nauka@codefruxtechnology.com
patel.nauka@codefruxtechnology.com
Structure of a typical Android Application

patel.nauka@codefruxtechnology.com
Android Manifest xml File


Every application must have an AndroidManifest.xml
file (with precisely that name) in its root directory.



The manifest presents essential information about the
application to the Android system, information the
system must have before it can run any of the
application's code.

patel.nauka@codefruxtechnology.com


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="matos.currencyconvereter"
android:versionCode="1"
android:versionName="1.0">



<application android:icon="@drawable/icon" android:label="@string/app_name">



<activity android:name=".Currency1"
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-sdkandroid:minSdkVersion="3" />
</manifest>

patel.nauka@codefruxtechnology.com
Architecture

patel.nauka@codefruxtechnology.com
Android S/W Stack – Linux Kernel



This is the kernel on which android is based . This layer
contains all the low level device drivers for the various
hardware components of an android device.



Providing an abstraction layer between the H/W and the
rest of the S/W stack letting the upper levels remain
unchanged despite changes in the underlying hardware.

patel.nauka@codefruxtechnology.com
Android S/W Stack - Runtime



Core Libraries



At the same layer as libraries set of core libraries that enable developers to write android Apps
using java Prog. Language.


Providing most of the functionality available in the core libraries of the Java language



APIs
 Data Structures
 Utilities
 File Access
 Network Access
 Graphics
 Etc

patel.nauka@codefruxtechnology.com
Android S/W Stack – Runtime (Cont)


Dalvik Virtual Machine


Providing environment on which every Android application
runs






Each Android application runs in its own process, with its own
instance of the Dalvik VM.
Dalvik has been written so that a device can run multiple VMs
efficiently.

Register-based virtual machine

patel.nauka@codefruxtechnology.com
Android S/W Stack – Runtime (Cont)


Dalvik Virtual Machine (Cont)


Executing the Dalvik Executable (.dex) format





.dex format is optimized for minimal memory footprint.
Compilation

Relying on the Linux Kernel for:



Threading
Low-level memory management

patel.nauka@codefruxtechnology.com
Android S/W Stack – App Framework

 Enabling




and simplifying the reuse of components

Developers have full access to the same framework APIs
used by the core applications.
Users are allowed to replace components.

patel.nauka@codefruxtechnology.com
Android S/W Stack – App Framework
 Features
Feature

Role

View
System

Used to build an application, including lists, grids, text
boxes, buttons, and embedded web browser

Content
Provider

Enabling applications to access data from other
applications or to share their own data

Resource
Manager

Providing access to non-code resources (localized string
, graphics, and layout files)

Notification
Manager

Enabling all applications to display customer alerts in the
status bar

Activity
Manager

Managing the lifecycle of applications and providing
a common navigation backstack

patel.nauka@codefruxtechnology.com
Android S/W Stack - Application



Android provides a set of core applications:










Email Client
SMS Program
Calendar
Maps
Browser
Contacts
Etc

All applications are written using the Java language.
patel.nauka@codefruxtechnology.com
patel.nauka@codefruxtechnology.com
Activity lifecycle

An activity has essentially three states:
 It is active or running when it is in the foreground of
the screen (at the top of the activity stack for the
current task). This is the activity that is the focus for
the user's actions.


patel.nauka@codefruxtechnology.com


As an activity transitions from state to state, it is
notified of the change by calls to the following
protected methods:
void onCreate(Bundle savedInstanceState)
void onStart()
void onRestart()
void onResume()
void onPause()
void onStop()
void onDestroy()

patel.nauka@codefruxtechnology.com


onCreate() : called when the activity is first created



onStart() :called when activity becomes visible to user



onResume() : called when activity start interacting with user.



onPause() : called when current activity is being paused and
previous activity is being resumed.



onStop() : called when activity is longer visible to user.

patel.nauka@codefruxtechnology.com


onDestroy(): called before activity is destroyed by the system.



onRestart() : called when activity has been stopped and
restarting again.

patel.nauka@codefruxtechnology.com
patel.nauka@codefruxtechnology.com
Layouts
1.
2.
3.
4.
5.
6.
7.

LinearLayout
RelativeLayout
TableLayout
TabLayout
FrameLayout
GridLayout
ListView

patel.nauka@codefruxtechnology.com
Layouts:


Frame Layout: all child views are pinned to the top left
corner of the screen



Linear Layout: each child view is added in a straight
line (vertically or horizontally)



Table Layout: add views using a grid of rows and
columns



Relative Layout : add views relative to the position of
other views or to its parent.

patel.nauka@codefruxtechnology.com


Absolute Layout : for each view you add, you specify
the exact screen coordinate to display on the screen



Tab Layout : add different tab relative to each other

patel.nauka@codefruxtechnology.com
Views











TextView
Button
EditText
Radio button
CheckBox
Spinner
WebView
ImageView
GalleryView
SurfaceView

patel.nauka@codefruxtechnology.com
Intent


Message passing between two or more then two
components of android



Activity interact each other with the help of intent
in android



Basically two type of intent available in android



Implicit Intent
Explicit Intent



patel.nauka@codefruxtechnology.com


Implicit Intent:
Intent which is sent from one
activity to in built android activity

For ex
1. Dialer
2. Contacts
3. Browser

patel.nauka@codefruxtechnology.com
Dialer

patel.nauka@codefruxtechnology.com
Calling

patel.nauka@codefruxtechnology.com
Browser

patel.nauka@codefruxtechnology.com
Contacts
N

Nauka Rao

patel.nauka@codefruxtechnology.com
Log

patel.nauka@codefruxtechnology.com
Camera

patel.nauka@codefruxtechnology.com
Pick
Nauka Rao

patel.nauka@codefruxtechnology.com


Dial:
Intent i = new Intent();
i.setAction(android.content.Intent.ACTION_DIAL);
i.setData(Uri.parse("tel:2121"));
startActivity(i);



Call:
Intent i = new Intent();
i.setAction(android.content.Intent.ACTION_CALL);
i.setData(Uri.parse("tel:2121"));
startActivity(i);

ankit@codefruxtechnology.com


Browser:
Intent i = new Intent();
i.setAction(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse("http://www.google.com"));
startActivity(i);



Contacts:
Intent i = new Intent();
i.setAction(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse("content://contacts/people/"));
startActivity(i);

ankit@codefruxtechnology.com


Call_Log:
Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setData(Uri.parse("content://call_log/calls/1"));
startActivity(i);



Media:
Intent i = new Intent();
i.setAction(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse("content://media/external/images/media/1"));
startActivity(i);

ankit@codefruxtechnology.com


Camera:
Intent i = new Intent();
i.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
startActivity(i);



Pick :

Intent i = new Intent();
i.setAction(android.content.Intent.ACTION_PICK);
i.setData(Uri.parse("content://contacts/people/"));
startActivity(i);

ankit@codefruxtechnology.com
Explicit Intent:
intent which is send to one activity
to another own activity
Second Activity must be registered in
manifest.xml file
Intent i=new Intent(First.this,Second.class);
startActivity(i);

ankit@codefruxtechnology.com
patel.nauka@codefruxtechnology.com

Contenu connexe

Tendances

android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginnerAjailal Parackal
 
Introduction to Andriod
Introduction to AndriodIntroduction to Andriod
Introduction to AndriodKaviarasu D
 
Android development
Android developmentAndroid development
Android developmentAsif Larra
 
Android chapter02-setup2-emulator
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulatorguru472
 
An brief introduction to android operating system
An brief introduction to android operating systemAn brief introduction to android operating system
An brief introduction to android operating systemAlexander Decker
 
Android introduction
Android introductionAndroid introduction
Android introductionReena Nachare
 
Android Development Training
Android Development TrainingAndroid Development Training
Android Development Trainingchandutata
 
Introduction to Android, Architecture & Components
Introduction to  Android, Architecture & ComponentsIntroduction to  Android, Architecture & Components
Introduction to Android, Architecture & ComponentsVijay Rastogi
 
Getting started with android
Getting started with androidGetting started with android
Getting started with androidamitgb
 
Android basic principles
Android basic principlesAndroid basic principles
Android basic principlesHenk Laracker
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, androidJehad2012
 
Android application structure
Android application structureAndroid application structure
Android application structureAlexey Ustenko
 
Android architecture
Android architectureAndroid architecture
Android architectureHari Krishna
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorialnazzf
 

Tendances (20)

Android Basic
Android BasicAndroid Basic
Android Basic
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
 
Introduction to Andriod
Introduction to AndriodIntroduction to Andriod
Introduction to Andriod
 
Android development
Android developmentAndroid development
Android development
 
Android chapter02-setup2-emulator
Android chapter02-setup2-emulatorAndroid chapter02-setup2-emulator
Android chapter02-setup2-emulator
 
An brief introduction to android operating system
An brief introduction to android operating systemAn brief introduction to android operating system
An brief introduction to android operating system
 
Android
Android Android
Android
 
Android introduction
Android introductionAndroid introduction
Android introduction
 
Android Development Training
Android Development TrainingAndroid Development Training
Android Development Training
 
Android Platform Architecture
Android Platform ArchitectureAndroid Platform Architecture
Android Platform Architecture
 
Introduction to Android, Architecture & Components
Introduction to  Android, Architecture & ComponentsIntroduction to  Android, Architecture & Components
Introduction to Android, Architecture & Components
 
Getting started with android
Getting started with androidGetting started with android
Getting started with android
 
Android basic principles
Android basic principlesAndroid basic principles
Android basic principles
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, android
 
Android application structure
Android application structureAndroid application structure
Android application structure
 
Android
AndroidAndroid
Android
 
Android primer
Android primerAndroid primer
Android primer
 
Android by LAlitha
Android by LAlithaAndroid by LAlitha
Android by LAlitha
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
 

En vedette

Ensayo hacienda pública
Ensayo hacienda públicaEnsayo hacienda pública
Ensayo hacienda públicaFroilan Roa
 
อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์Jenny Jenista
 
أذكار المساء
أذكار المساءأذكار المساء
أذكار المساءmlaouhiradhia
 
Unit 1 | Overview Powerpoint
Unit 1 | Overview PowerpointUnit 1 | Overview Powerpoint
Unit 1 | Overview PowerpointCharlie Hall
 
La sentencia y el auto UFT
La sentencia y el auto UFTLa sentencia y el auto UFT
La sentencia y el auto UFTFroilan Roa
 
10. sig free a signature free buffer overflow attack blocker
10.  sig free a signature free buffer overflow attack blocker10.  sig free a signature free buffer overflow attack blocker
10. sig free a signature free buffer overflow attack blockerakila_mano
 
อุปกรณ์เชื่อมต่อคอมพิวเตอร์
อุปกรณ์เชื่อมต่อคอมพิวเตอร์อุปกรณ์เชื่อมต่อคอมพิวเตอร์
อุปกรณ์เชื่อมต่อคอมพิวเตอร์Jenny Jenista
 
Litvakworld presentation Philadelphia
Litvakworld presentation PhiladelphiaLitvakworld presentation Philadelphia
Litvakworld presentation PhiladelphiaŽygimantas Surintas
 
Revised Screenplay
Revised ScreenplayRevised Screenplay
Revised ScreenplayCharlie Hall
 
Skoda Cake Car Advert
Skoda Cake Car AdvertSkoda Cake Car Advert
Skoda Cake Car AdvertCharlie Hall
 
ผู้ให้บริการอินเตอร์เน็ต
ผู้ให้บริการอินเตอร์เน็ตผู้ให้บริการอินเตอร์เน็ต
ผู้ให้บริการอินเตอร์เน็ตJenny Jenista
 
Presentation Hollywood
Presentation HollywoodPresentation Hollywood
Presentation HollywoodSafuan Saleh
 
임베디드 시스템 과제
임베디드 시스템 과제임베디드 시스템 과제
임베디드 시스템 과제민구 강
 
Arquitectura griega. Clases particulares
Arquitectura griega. Clases particularesArquitectura griega. Clases particulares
Arquitectura griega. Clases particularesAcademia en tu casa
 

En vedette (20)

Ensayo hacienda pública
Ensayo hacienda públicaEnsayo hacienda pública
Ensayo hacienda pública
 
อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์อุปกรณ์เครือข่ายคอมพิวเตอร์
อุปกรณ์เครือข่ายคอมพิวเตอร์
 
Story boards
Story boardsStory boards
Story boards
 
LIVRE IMPLOSION bon de commande
LIVRE IMPLOSION bon de commandeLIVRE IMPLOSION bon de commande
LIVRE IMPLOSION bon de commande
 
أذكار المساء
أذكار المساءأذكار المساء
أذكار المساء
 
Unit 1 | Overview Powerpoint
Unit 1 | Overview PowerpointUnit 1 | Overview Powerpoint
Unit 1 | Overview Powerpoint
 
функції грошей
функції грошейфункції грошей
функції грошей
 
La sentencia y el auto UFT
La sentencia y el auto UFTLa sentencia y el auto UFT
La sentencia y el auto UFT
 
10. sig free a signature free buffer overflow attack blocker
10.  sig free a signature free buffer overflow attack blocker10.  sig free a signature free buffer overflow attack blocker
10. sig free a signature free buffer overflow attack blocker
 
อุปกรณ์เชื่อมต่อคอมพิวเตอร์
อุปกรณ์เชื่อมต่อคอมพิวเตอร์อุปกรณ์เชื่อมต่อคอมพิวเตอร์
อุปกรณ์เชื่อมต่อคอมพิวเตอร์
 
Litvakworld presentation Philadelphia
Litvakworld presentation PhiladelphiaLitvakworld presentation Philadelphia
Litvakworld presentation Philadelphia
 
Com
ComCom
Com
 
Revised Screenplay
Revised ScreenplayRevised Screenplay
Revised Screenplay
 
Skoda Cake Car Advert
Skoda Cake Car AdvertSkoda Cake Car Advert
Skoda Cake Car Advert
 
ผู้ให้บริการอินเตอร์เน็ต
ผู้ให้บริการอินเตอร์เน็ตผู้ให้บริการอินเตอร์เน็ต
ผู้ให้บริการอินเตอร์เน็ต
 
Syntax
SyntaxSyntax
Syntax
 
Presentation Hollywood
Presentation HollywoodPresentation Hollywood
Presentation Hollywood
 
임베디드 시스템 과제
임베디드 시스템 과제임베디드 시스템 과제
임베디드 시스템 과제
 
Lawrence yae presentation
Lawrence yae presentationLawrence yae presentation
Lawrence yae presentation
 
Arquitectura griega. Clases particulares
Arquitectura griega. Clases particularesArquitectura griega. Clases particulares
Arquitectura griega. Clases particulares
 

Similaire à 1 introduction of android

Introduction to android
Introduction to androidIntroduction to android
Introduction to androidzeelpatel0504
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android Ranjith Kumar
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
 
Android seminar-report-body.doc
Android seminar-report-body.docAndroid seminar-report-body.doc
Android seminar-report-body.docDeepak Yadav
 
Phonebook Directory or Address Book In Android
Phonebook Directory or Address Book In AndroidPhonebook Directory or Address Book In Android
Phonebook Directory or Address Book In AndroidABHISHEK DINKAR
 
Android overview
Android overviewAndroid overview
Android overviewHas Taiar
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorialilias ahmed
 
Android technology
Android technologyAndroid technology
Android technologyDhruv Modh
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to AndroidJindal Gohil
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidJindal Gohil
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App DevelopmentMike Kvintus
 
Android understanding
Android understandingAndroid understanding
Android understandingRamesh Rao
 
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-assARVIND SARDAR
 
Wifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android ApplicationWifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android ApplicationNitin Bhasin
 

Similaire à 1 introduction of android (20)

Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
 
Android seminar-report-body.doc
Android seminar-report-body.docAndroid seminar-report-body.doc
Android seminar-report-body.doc
 
Phonebook Directory or Address Book In Android
Phonebook Directory or Address Book In AndroidPhonebook Directory or Address Book In Android
Phonebook Directory or Address Book In Android
 
Android overview
Android overviewAndroid overview
Android overview
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorial
 
Android Overview
Android OverviewAndroid Overview
Android Overview
 
Android apps
Android appsAndroid apps
Android apps
 
Introduction to Android Environment
Introduction to Android EnvironmentIntroduction to Android Environment
Introduction to Android Environment
 
Android technology
Android technologyAndroid technology
Android technology
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to Android
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
Android
Android Android
Android
 
Android understanding
Android understandingAndroid understanding
Android understanding
 
AndroidOs
AndroidOsAndroidOs
AndroidOs
 
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
 
Wifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android ApplicationWifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android Application
 

Dernier

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Dernier (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

1 introduction of android

  • 2. What is a Software?  A collection of computer programs and related data that provide the instructions for telling a computer what to do and how to do it making imaginary into reality . patel.nauka@codefruxtechnology.com
  • 4.  Smartphone= PDA + Cell phone  Smartphone Features  Keyboard Internet Access Ability to download app & run independently Personal Information Management Wi-Fi Support 3rd party app And many more…       patel.nauka@codefruxtechnology.com
  • 6. Software Stack  Set of programs working together to produce a result.  It consists of 1. Operating System 2. Middleware 3. Key Applications patel.nauka@codefruxtechnology.com
  • 8. What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware and key applications. patel.nauka@codefruxtechnology.com
  • 9. WHYANDROID?  A simple and powerful SDK  No licensing, distribution, or development fees  Development over many platform Linux, Mac OS, windows  Excellent documentation  For us: Development using Java .  Job opportunity  patel.nauka@codefruxtechnology.com
  • 10. The Birth of Android       Android Inc. founded in 2003 The key players at Android Inc. included Andy Rubin -co-founder of Danger .Inc Rich Miner-co-founder of Wildfire Communications, Inc. Nick Sears - once VP at T-Mobile Chris White - headed design and interface development at Web TV Android Inc. acquired by Google Google acquired the startup company Android Inc. in 2005 to start the development of the Android Platform.
  • 11. Introducing Android A first joined project of the Open Handset Alliance (OHA)   First open, complete and free platform Software stack open-sourced. A generous development environment    A SDK is available to build ,compile, test and debug user applications. Applications are developed using Java programming language No difference between the built-in applications and the user ones
  • 12. What is Open Handset Alliance?  •“… Open Handset Alliance™, a group of 85 technology and mobile firms have come together to develop open standards for mobile devices.  Google, HTC, Sony, Dell, Intel, Motorola, Qualcomm, Samsung, LG, TMobile.....etc.  Announcement of the formation of the OHA was on 5 November 2007.
  • 13. First Mobile  An early look of the SDK was released to developers on 12 November 2007.  The first commercially available Android phone was the T-Mobile G1 (HTC Dream). In August 2008,and became available on 22 October.
  • 15. Tablets Velocity Micro Cruz Gome FlyTouch Acer beTouch Cisco Android Tablet Dawa D7 Samsung Galaxy patel.nauka@codefruxtechnology.com Tab
  • 16. Features           Application framework enabling reuse and replacement of components Dalvik virtual machine optimized for mobile devices Integrated browser based on the open source WebKit engine Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) SQLite for structured data storage Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) GSM Telephony (hardware dependent) Bluetooth, EDGE, 3G, and WiFi (hardware dependent) Camera, GPS, compass, and accelerometer (hardware dependent) Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE patel.nauka@codefruxtechnology.com
  • 17. What you need:  Operating System: Windows XP: (32-bit), Vista (32/64-bit), or Windows 7 (32/ 64-bit) Mac OS X : 10.5.8 or later (x86 only) Linux : Ubuntu Linux, version 8.04 or later is required.  JDK >= 5  Android SDK  Eclipse + Android Development Tools plug-in patel.nauka@codefruxtechnology.com
  • 19. Installation - Android SDK  Download the Android SDK from: http://developer.android.com/sdk/  Unpack the compressed file into a location you prefer. patel.nauka@codefruxtechnology.com
  • 21. To create an AVD in Eclipse: 1. Select Window > Android SDK and AVD Manager. The Android SDK and AVD Manager displays. 1. Make sure the entry for Virtual Devices is selected and click New. The Create new AVD window displays. 1. Enter a Name for the AVD. 2. Select Android APIs (API level 8) as the Target. Click Create AVD. Close the Android SDK and AVD Manager. 3. 4. patel.nauka@codefruxtechnology.com
  • 22. To create the project in Eclipse: 1. 2. 3. 4. 5. 6. 7. 8. Select File > New > Project. Select Android Project in the Android folder and click Next. Enter Project Name. Select APIs (Platform 2.2) as the Build Target. Enter the Application name. Enter com.android as the Package name. Enter the Activity name. Click Finish. patel.nauka@codefruxtechnology.com
  • 24. Structure of a typical Android Application patel.nauka@codefruxtechnology.com
  • 25. Android Manifest xml File  Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory.  The manifest presents essential information about the application to the Android system, information the system must have before it can run any of the application's code. patel.nauka@codefruxtechnology.com
  • 26.  <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="matos.currencyconvereter" android:versionCode="1" android:versionName="1.0">  <application android:icon="@drawable/icon" android:label="@string/app_name">  <activity android:name=".Currency1" 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-sdkandroid:minSdkVersion="3" /> </manifest> patel.nauka@codefruxtechnology.com
  • 28. Android S/W Stack – Linux Kernel  This is the kernel on which android is based . This layer contains all the low level device drivers for the various hardware components of an android device.  Providing an abstraction layer between the H/W and the rest of the S/W stack letting the upper levels remain unchanged despite changes in the underlying hardware. patel.nauka@codefruxtechnology.com
  • 29. Android S/W Stack - Runtime  Core Libraries  At the same layer as libraries set of core libraries that enable developers to write android Apps using java Prog. Language.  Providing most of the functionality available in the core libraries of the Java language  APIs  Data Structures  Utilities  File Access  Network Access  Graphics  Etc patel.nauka@codefruxtechnology.com
  • 30. Android S/W Stack – Runtime (Cont)  Dalvik Virtual Machine  Providing environment on which every Android application runs    Each Android application runs in its own process, with its own instance of the Dalvik VM. Dalvik has been written so that a device can run multiple VMs efficiently. Register-based virtual machine patel.nauka@codefruxtechnology.com
  • 31. Android S/W Stack – Runtime (Cont)  Dalvik Virtual Machine (Cont)  Executing the Dalvik Executable (.dex) format    .dex format is optimized for minimal memory footprint. Compilation Relying on the Linux Kernel for:   Threading Low-level memory management patel.nauka@codefruxtechnology.com
  • 32. Android S/W Stack – App Framework  Enabling   and simplifying the reuse of components Developers have full access to the same framework APIs used by the core applications. Users are allowed to replace components. patel.nauka@codefruxtechnology.com
  • 33. Android S/W Stack – App Framework  Features Feature Role View System Used to build an application, including lists, grids, text boxes, buttons, and embedded web browser Content Provider Enabling applications to access data from other applications or to share their own data Resource Manager Providing access to non-code resources (localized string , graphics, and layout files) Notification Manager Enabling all applications to display customer alerts in the status bar Activity Manager Managing the lifecycle of applications and providing a common navigation backstack patel.nauka@codefruxtechnology.com
  • 34. Android S/W Stack - Application  Android provides a set of core applications:         Email Client SMS Program Calendar Maps Browser Contacts Etc All applications are written using the Java language. patel.nauka@codefruxtechnology.com
  • 36. Activity lifecycle An activity has essentially three states:  It is active or running when it is in the foreground of the screen (at the top of the activity stack for the current task). This is the activity that is the focus for the user's actions.  patel.nauka@codefruxtechnology.com
  • 37.  As an activity transitions from state to state, it is notified of the change by calls to the following protected methods: void onCreate(Bundle savedInstanceState) void onStart() void onRestart() void onResume() void onPause() void onStop() void onDestroy() patel.nauka@codefruxtechnology.com
  • 38.  onCreate() : called when the activity is first created  onStart() :called when activity becomes visible to user  onResume() : called when activity start interacting with user.  onPause() : called when current activity is being paused and previous activity is being resumed.  onStop() : called when activity is longer visible to user. patel.nauka@codefruxtechnology.com
  • 39.  onDestroy(): called before activity is destroyed by the system.  onRestart() : called when activity has been stopped and restarting again. patel.nauka@codefruxtechnology.com
  • 42. Layouts:  Frame Layout: all child views are pinned to the top left corner of the screen  Linear Layout: each child view is added in a straight line (vertically or horizontally)  Table Layout: add views using a grid of rows and columns  Relative Layout : add views relative to the position of other views or to its parent. patel.nauka@codefruxtechnology.com
  • 43.  Absolute Layout : for each view you add, you specify the exact screen coordinate to display on the screen  Tab Layout : add different tab relative to each other patel.nauka@codefruxtechnology.com
  • 46.  Message passing between two or more then two components of android  Activity interact each other with the help of intent in android  Basically two type of intent available in android  Implicit Intent Explicit Intent  patel.nauka@codefruxtechnology.com
  • 47.  Implicit Intent: Intent which is sent from one activity to in built android activity For ex 1. Dialer 2. Contacts 3. Browser patel.nauka@codefruxtechnology.com
  • 55.  Dial: Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_DIAL); i.setData(Uri.parse("tel:2121")); startActivity(i);  Call: Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_CALL); i.setData(Uri.parse("tel:2121")); startActivity(i); ankit@codefruxtechnology.com
  • 56.  Browser: Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_VIEW); i.setData(Uri.parse("http://www.google.com")); startActivity(i);  Contacts: Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_VIEW); i.setData(Uri.parse("content://contacts/people/")); startActivity(i); ankit@codefruxtechnology.com
  • 57.  Call_Log: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setData(Uri.parse("content://call_log/calls/1")); startActivity(i);  Media: Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_VIEW); i.setData(Uri.parse("content://media/external/images/media/1")); startActivity(i); ankit@codefruxtechnology.com
  • 58.  Camera: Intent i = new Intent(); i.setAction(MediaStore.ACTION_IMAGE_CAPTURE); startActivity(i);  Pick : Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_PICK); i.setData(Uri.parse("content://contacts/people/")); startActivity(i); ankit@codefruxtechnology.com
  • 59. Explicit Intent: intent which is send to one activity to another own activity Second Activity must be registered in manifest.xml file Intent i=new Intent(First.this,Second.class); startActivity(i); ankit@codefruxtechnology.com