SlideShare a Scribd company logo
Aptech Apps
WHAT IS ANDROID?
 A Software platform and operating system for mobile.
 Based on the Linux kernel.
 Android was found way back in 2003.
 It was developed in Palo Alto, California.
 Android was developed by the Andy Rubin, Rich Miner, Nick
Sears and Chris White.
 Android was purchased by the GOOGLE in AUGUST,2005
for 50 million $.
Android Environment Setup
 Java JDK5 or JDK6
 Android SDK
 Eclipse IDE for Java Developers (optional)
 Android Development Tools (ADT) Eclipse
Plugin (optional)
 SDK - Software Development KIT
 Android Studio Use Java – Only For Android
 ADT – Android Developer Tools
 AVD – Android Virtual Device—Testing Point
of View
 NDK Tool Download
 Developer.android.com
 Click on SDK ---- Download the NDK
 Making source code available to everyone
inevitably invites the attention of hackers.
 Android operating system uses more amount of
battery as compared to normal mobile phones.
 As there are so many user sometimes it becomes
difficult to connect all the users.
 As we call Android is world of applications we
continuously need to connected with the internet
which is not possible for all the users.
 Android is not a single piece of hardware.
 Android supports wireless communication using:-
 3G Networks
 4G Networks
 802.11 Wi-Fi Networks
 Bluetooth Connectivity
 Android is a multi-process system, in which each
application (and parts of the system) runs in its own
process
 Interface that is better then the previous touch screen
mobiles.
 User gets millions of applications that user can not get in
any other mobile operating system.
 Android supports advanced audio/video/still media
formats such as MPEG-4, H.264, MP3, and AAC, AMR,
JPEG, PNG, GIF.
 Developing an android application is not tough using
SDK(standard development kit) and java emulator we can
easily develop applications that we want
 Android Beta
 First Version of Android.
 The focus of Android beta is testing incorporating usability.
 Android beta will generally have many more problems on speed and
performance.
Android Astro 1.0
 First full version of android.
 Released on September 23, 2008.
 Wi-Fi and Bluetooth support.
 Quite slow in operating.
 copy and paste feature in the web browser is not present.
 Released on April 30, 2009.
 Added auto-rotation option.
 Copy and Paste feature added in the web browser.
 Increased speed and performance but not upto required level
Android Donut 1.6
 Released on September 15, 2009.
 Voice search and Search box were added.
 Faster OS boot times and fast web browsing experience.
 Typing is quite slower.
Android Éclair 2.0/2.1
 Released on October 26, 2009.
 Bluetooth 2.1 support.
 Improved typing speed on virtual keyboard, with smarter dictionary.
 no Adobe flash media support
 Android Froyo 2.2
 Released on May 20, 2010.
 Support for Adobe Flash 10.1
 Improved Application launcher with better browser
 No internet calling
Android Gingerbread 2.3
 Released on December 6, 2010.
 Updated User Interface with high efficiency and speed
 Internet calling
 One touch word selection and copy/paste.
 New keyboard for faster word input.
 More successful version of Android than previous versions.
 not supports multi-core processors.
Android Honeycomb 3.0
 Released on February 22, 2011.
 Support for multi-core processors
 Ability to encrypt all user data.
 This version of android is only available for tablets.
 Android IceCreamSandwich(ICS) 4.0
 Released on November 14, 2011.
 Virtual button in the UI.
 A new typeface family for the UI, Roboto.
 Ability to shut down apps that are using data in the
background
Android JellyBean 4.1
 Released on June 27, 2012.
 Latest version of Android.
 Smoother user interface
.
Eclipse IDE
Android
SDK
Android
Emulator
Android
Mobile
Device
Android
Manifest
Resource
XML
Java Source
Generated
Class
Java
Compiler
Android
Libraries
.dex
File
Dalvik
VM
Application components are the essential building blocks of an
Android application. These components are loosely coupled
by the application manifest file AndroidManifest.xml that
describes each component of the application and how they
interact.
 Components
 Description
 Activities
 They dictate the UI and handle the user interaction to the
smartphone screen
 Services
 They handle background processing associated with an
application.
 Broadcast Receivers
 They handle communication between Android OS and
applications.
 Content Providers
 They handle data and database management issues.
 Activities
 An activity represents a single screen with a user
interface. For example, an email application might
have one activity that shows a list of new emails,
another activity to compose an email, and another
activity for reading emails. If an application has more
than one activity, then one of them should be marked
as the activity that is presented when the application is
launched.
 An activity is implemented as a subclass
of Activity class as follows:
 public class MainActivity extends Activity { }
 Services
 A service is a component that runs in the background
to perform long-running operations. For example, a
service might play music in the background while the
user is in a different application, or it might fetch data
over the network without blocking user interaction
with an activity.
 A service is implemented as a subclass of Service class
as follows:
 public class MyService extends Service { }
 Broadcast Receivers
 Broadcast Receivers simply respond to broadcast messages from
other applications or from the system. For example, applications
can also initiate broadcasts to let other applications know that
some data has been downloaded to the device and is available for
them to use, so this is broadcast receiver who will intercept this
communication and will initiate appropriate action.
 A broadcast receiver is implemented as a subclass
of BroadcastReceiver class and each message is broadcasted as
an Intent object.
 public class MyReceiver extends
BroadcastReceiver { }
 Content Providers
 A content provider component supplies data from one application
to others on request. Such requests are handled by the methods of
the ContentResolver class. The data may be stored in the file
system, the database or somewhere else entirely.
 A content provider is implemented as a subclass
of ContentProvider class and must implement a standard set of
APIs that enable other applications to perform transactions.
 public class MyContentProvider extends ContentProvider { }
Intents are asynchronous messages which allow application
components to request functionality from other Android
components. Intents allow you to interact with components
from the same applications as well as with components
contributed by other applications. For example, an activity
can start an external activity for taking a picture.
Intents are objects of the android.content.Intent type. Your
code can send them to the Android system defining the
components you are targeting. For example, via
the startActivity () method you can define that the intent
should be used to start an activity.
An intent can contain data via a Bundle. This data can be
used by the receiving component.
 To start an activity, use the method startActivity(intent). This
method is defined on the Context object whichActivity extends.

 The following code demonstrates how you can start another
activity via an intent.
 # Start the activity connect to the
 # specified class

 Intent i = new Intent(this, ActivityTwo.class);
 startActivity(i);
 2.1. Different types of intents
 Android supports explicit and implicit
intents.
Explicit Intents
 Explicit intents explicitly define the component
which should be called by the Android system,
by using the Java class as identifier.
 The following shows how to create an explicit
intent and send it to the Android system. If the
class specified in the intent represents an activity,
the Android system starts it.
Implicit Intents
Implicit intents specify the action which should be
performed and optionally data which provides content for
the action.
For example, the following tells the Android system to view
a webpage. All installed web browsers should be registered
to the corresponding intent data via an intent filter.
 Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://www.vogella.com"));startAct
ivity(i);

More Related Content

PDF
Day 2 android internals a quick overview
Ahsanul Karim
 
PDF
Android Introduction by Kajal
Kajal Kucheriya Jain
 
PDF
লেকচার ১ (ক)- শুরুর আগে:
Ahsanul Karim
 
PDF
Android Basic- CMC
Pragati Singh
 
PDF
Android dev o_auth
fantasy zheng
 
PPTX
Android basic principles
Henk Laracker
 
ODP
Architecture your android_application
Mark Brady
 
PDF
Android App Development Intro at ESC SV 2012
Opersys inc.
 
Day 2 android internals a quick overview
Ahsanul Karim
 
Android Introduction by Kajal
Kajal Kucheriya Jain
 
লেকচার ১ (ক)- শুরুর আগে:
Ahsanul Karim
 
Android Basic- CMC
Pragati Singh
 
Android dev o_auth
fantasy zheng
 
Android basic principles
Henk Laracker
 
Architecture your android_application
Mark Brady
 
Android App Development Intro at ESC SV 2012
Opersys inc.
 

What's hot (20)

PPT
Android In A Nutshell
Ted Chien
 
PDF
Android Development in a Nutshell
Aleix Solé
 
PDF
Android interview questions and answers
kavinilavuG
 
PPTX
Android architecture
poojapainter
 
PDF
Mobile Application Development with Android
IJAAS Team
 
PDF
01 03 - introduction to android
Siva Kumar reddy Vasipally
 
PDF
android level 1
DevMix
 
PPTX
Android Basic
Nirav Ranpara
 
PPTX
Android
Nirav Ranpara
 
PDF
Using Maven to build Java & Android program
Mu Chun Wang
 
PPTX
Android Operating System Architecture
DINESH KUMAR ARIVARASAN
 
PDF
Android - From Zero to Hero @ DEVit 2017
Ivo Neskovic
 
PPT
An introduction to Android
Rajesh Jambukia
 
PPTX
Android
Harendra Chauhan
 
DOC
Android
9994426949
 
PDF
Android Architecture
Pietro Alberto Rossi
 
PPT
Android ppt
Ritu Ganeshe
 
PPTX
Android software
Ajay Dhurvanshi
 
PPTX
Ppt on android
Prabhat Singh
 
PPTX
Android ppt
NivethiniL
 
Android In A Nutshell
Ted Chien
 
Android Development in a Nutshell
Aleix Solé
 
Android interview questions and answers
kavinilavuG
 
Android architecture
poojapainter
 
Mobile Application Development with Android
IJAAS Team
 
01 03 - introduction to android
Siva Kumar reddy Vasipally
 
android level 1
DevMix
 
Android Basic
Nirav Ranpara
 
Android
Nirav Ranpara
 
Using Maven to build Java & Android program
Mu Chun Wang
 
Android Operating System Architecture
DINESH KUMAR ARIVARASAN
 
Android - From Zero to Hero @ DEVit 2017
Ivo Neskovic
 
An introduction to Android
Rajesh Jambukia
 
Android
9994426949
 
Android Architecture
Pietro Alberto Rossi
 
Android ppt
Ritu Ganeshe
 
Android software
Ajay Dhurvanshi
 
Ppt on android
Prabhat Singh
 
Android ppt
NivethiniL
 
Ad

Similar to Aptech Apps (20)

PDF
Android development-tutorial
nirajsimulanis
 
PPTX
UNIT5newpart1pptx__2024_11_13_09_51_59 (1).pptx
LeeroyMugadza
 
PPTX
Introduction to android
zeelpatel0504
 
DOC
Google android white paper
Sravan Reddy
 
PDF
report A K Maurya.pdf
Sonu62614
 
PPTX
Android development-tutorial
ilias ahmed
 
PPTX
Android beginners David
Arun David Johnson R
 
PPTX
Introduction to Android Development Part 1
Kainda Kiniel Daka
 
PPTX
Android platform
Rashmi Warghade
 
PPTX
Android Basic Presentation (Introduction)
RAHUL TRIPATHI
 
PPT
Introduction to Android Environment
Compare Infobase Limited
 
PPTX
Android
Ravi Vyas
 
DOCX
Questions About Android Application Development
Adeel Rasheed
 
PPTX
Android basics
Syed Luqman Quadri
 
PPT
Introduction to android
javalabsf
 
PDF
Os eclipse-androidwidget-pdf
weerabahu
 
PPTX
Android app development ppt
saitej15
 
PDF
Android : Architecture & Components
Akash Bisariya
 
PDF
Mobile Application Development-Lecture 03 & 04.pdf
AbdullahMunir32
 
PDF
Mobile Application Development-Lecture 01 & 02.pdf
AbdullahMunir32
 
Android development-tutorial
nirajsimulanis
 
UNIT5newpart1pptx__2024_11_13_09_51_59 (1).pptx
LeeroyMugadza
 
Introduction to android
zeelpatel0504
 
Google android white paper
Sravan Reddy
 
report A K Maurya.pdf
Sonu62614
 
Android development-tutorial
ilias ahmed
 
Android beginners David
Arun David Johnson R
 
Introduction to Android Development Part 1
Kainda Kiniel Daka
 
Android platform
Rashmi Warghade
 
Android Basic Presentation (Introduction)
RAHUL TRIPATHI
 
Introduction to Android Environment
Compare Infobase Limited
 
Android
Ravi Vyas
 
Questions About Android Application Development
Adeel Rasheed
 
Android basics
Syed Luqman Quadri
 
Introduction to android
javalabsf
 
Os eclipse-androidwidget-pdf
weerabahu
 
Android app development ppt
saitej15
 
Android : Architecture & Components
Akash Bisariya
 
Mobile Application Development-Lecture 03 & 04.pdf
AbdullahMunir32
 
Mobile Application Development-Lecture 01 & 02.pdf
AbdullahMunir32
 
Ad

Recently uploaded (20)

PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PDF
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 

Aptech Apps

  • 2. WHAT IS ANDROID?  A Software platform and operating system for mobile.  Based on the Linux kernel.  Android was found way back in 2003.  It was developed in Palo Alto, California.  Android was developed by the Andy Rubin, Rich Miner, Nick Sears and Chris White.  Android was purchased by the GOOGLE in AUGUST,2005 for 50 million $.
  • 3. Android Environment Setup  Java JDK5 or JDK6  Android SDK  Eclipse IDE for Java Developers (optional)  Android Development Tools (ADT) Eclipse Plugin (optional)
  • 4.  SDK - Software Development KIT  Android Studio Use Java – Only For Android  ADT – Android Developer Tools  AVD – Android Virtual Device—Testing Point of View  NDK Tool Download  Developer.android.com  Click on SDK ---- Download the NDK
  • 5.  Making source code available to everyone inevitably invites the attention of hackers.  Android operating system uses more amount of battery as compared to normal mobile phones.  As there are so many user sometimes it becomes difficult to connect all the users.  As we call Android is world of applications we continuously need to connected with the internet which is not possible for all the users.
  • 6.  Android is not a single piece of hardware.  Android supports wireless communication using:-  3G Networks  4G Networks  802.11 Wi-Fi Networks  Bluetooth Connectivity  Android is a multi-process system, in which each application (and parts of the system) runs in its own process
  • 7.  Interface that is better then the previous touch screen mobiles.  User gets millions of applications that user can not get in any other mobile operating system.  Android supports advanced audio/video/still media formats such as MPEG-4, H.264, MP3, and AAC, AMR, JPEG, PNG, GIF.  Developing an android application is not tough using SDK(standard development kit) and java emulator we can easily develop applications that we want
  • 8.  Android Beta  First Version of Android.  The focus of Android beta is testing incorporating usability.  Android beta will generally have many more problems on speed and performance. Android Astro 1.0  First full version of android.  Released on September 23, 2008.  Wi-Fi and Bluetooth support.  Quite slow in operating.  copy and paste feature in the web browser is not present.
  • 9.  Released on April 30, 2009.  Added auto-rotation option.  Copy and Paste feature added in the web browser.  Increased speed and performance but not upto required level Android Donut 1.6  Released on September 15, 2009.  Voice search and Search box were added.  Faster OS boot times and fast web browsing experience.  Typing is quite slower. Android Éclair 2.0/2.1  Released on October 26, 2009.  Bluetooth 2.1 support.  Improved typing speed on virtual keyboard, with smarter dictionary.  no Adobe flash media support
  • 10.  Android Froyo 2.2  Released on May 20, 2010.  Support for Adobe Flash 10.1  Improved Application launcher with better browser  No internet calling Android Gingerbread 2.3  Released on December 6, 2010.  Updated User Interface with high efficiency and speed  Internet calling  One touch word selection and copy/paste.  New keyboard for faster word input.  More successful version of Android than previous versions.  not supports multi-core processors. Android Honeycomb 3.0  Released on February 22, 2011.  Support for multi-core processors  Ability to encrypt all user data.  This version of android is only available for tablets.
  • 11.  Android IceCreamSandwich(ICS) 4.0  Released on November 14, 2011.  Virtual button in the UI.  A new typeface family for the UI, Roboto.  Ability to shut down apps that are using data in the background Android JellyBean 4.1  Released on June 27, 2012.  Latest version of Android.  Smoother user interface .
  • 14. Application components are the essential building blocks of an Android application. These components are loosely coupled by the application manifest file AndroidManifest.xml that describes each component of the application and how they interact.  Components  Description  Activities  They dictate the UI and handle the user interaction to the smartphone screen  Services  They handle background processing associated with an application.  Broadcast Receivers  They handle communication between Android OS and applications.  Content Providers  They handle data and database management issues.
  • 15.  Activities  An activity represents a single screen with a user interface. For example, an email application might have one activity that shows a list of new emails, another activity to compose an email, and another activity for reading emails. If an application has more than one activity, then one of them should be marked as the activity that is presented when the application is launched.  An activity is implemented as a subclass of Activity class as follows:  public class MainActivity extends Activity { }
  • 16.  Services  A service is a component that runs in the background to perform long-running operations. For example, a service might play music in the background while the user is in a different application, or it might fetch data over the network without blocking user interaction with an activity.  A service is implemented as a subclass of Service class as follows:  public class MyService extends Service { }
  • 17.  Broadcast Receivers  Broadcast Receivers simply respond to broadcast messages from other applications or from the system. For example, applications can also initiate broadcasts to let other applications know that some data has been downloaded to the device and is available for them to use, so this is broadcast receiver who will intercept this communication and will initiate appropriate action.  A broadcast receiver is implemented as a subclass of BroadcastReceiver class and each message is broadcasted as an Intent object.  public class MyReceiver extends BroadcastReceiver { }
  • 18.  Content Providers  A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ContentResolver class. The data may be stored in the file system, the database or somewhere else entirely.  A content provider is implemented as a subclass of ContentProvider class and must implement a standard set of APIs that enable other applications to perform transactions.  public class MyContentProvider extends ContentProvider { }
  • 19. Intents are asynchronous messages which allow application components to request functionality from other Android components. Intents allow you to interact with components from the same applications as well as with components contributed by other applications. For example, an activity can start an external activity for taking a picture. Intents are objects of the android.content.Intent type. Your code can send them to the Android system defining the components you are targeting. For example, via the startActivity () method you can define that the intent should be used to start an activity. An intent can contain data via a Bundle. This data can be used by the receiving component.
  • 20.  To start an activity, use the method startActivity(intent). This method is defined on the Context object whichActivity extends.   The following code demonstrates how you can start another activity via an intent.  # Start the activity connect to the  # specified class   Intent i = new Intent(this, ActivityTwo.class);  startActivity(i);
  • 21.  2.1. Different types of intents  Android supports explicit and implicit intents. Explicit Intents  Explicit intents explicitly define the component which should be called by the Android system, by using the Java class as identifier.  The following shows how to create an explicit intent and send it to the Android system. If the class specified in the intent represents an activity, the Android system starts it.
  • 22. Implicit Intents Implicit intents specify the action which should be performed and optionally data which provides content for the action. For example, the following tells the Android system to view a webpage. All installed web browsers should be registered to the corresponding intent data via an intent filter.
  • 23.  Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.vogella.com"));startAct ivity(i);