SlideShare a Scribd company logo
Getting Started with
Android Application
Development
What is Android
 It is a open source software platform and operating system for
mobile devices.
 Developed by Google and later the Open Handset Alliance (OHA)
 Allows writing managed code in the Java language.
Android Version History
Architecture
Android Components
 Activity
 provides a screen with which users can interact in order to do
something.
 Intents
 Intents are asynchronous message object which allow the
application to request functionality from other components of the
Android system, e.g. from Services or Activities.
 Services
 Services perform long-running operations in the background and
does not provide a user interface.
Android Components
 Content Providers
 A ContentProvider provides a structured interface to application data. Via a
ContentProvider your application can share data with other applications.
 App Widgets
 Widgets are miniature application views that can be embedded in other applications
(such as the Home screen) and receive periodic updates.
Project Components -Eclipse
Project Components – Android Studio
 Main Project
 .idea
 Project Module (app)
 Build
 libs
 src
 gradle
 External Libraries
Project Components – Android Studio
 Main Project
 This would be entire project context.
 A project is an organizational unit that represents a complete software solution.
 .idea
 storing project specific metadata.
Project Components – Android Studio
 Project Module (app)
 This is the actual project folder where your application code resides.
 has 3 sub directories
 Build
 complete output of the make process i.e. classes.dex, compiled classes and
resources, etc.
 libs
 hold the libraries or .jar files that needed in the project.
 src
Project Components – Android Studio
 src:
 have both application code and android unit test script.
 Have two folders
 androidTest
 main
 two subfolders java and res.
 The java folder contains all the java codes and res contains drawables, layouts, etc.
Project Components – Android Studio
 Gradle
 This is where the gradle build system’s jar wrapper. i.e. this jar is how AS
communicates with gradle installed in Windows (the OS in my case).
 External Libraries
 This is not actually a folder but a place where Referenced Libraries and
information on targeted platform SDK is shown.
Supporting Different Densities
 Densities
 xxhdpi: 2.5
 xhdpi:2.0
 hdpi: 1.5
 mdpi: 1.0 (baseline)
 ldpi: 0.75
 0ne approach is to work in the base standard (normal size and MDPI) and scale
it up or down for the other buckets.
 Another approach is to start with the device with the largest screen size, and
then scale down and figure out the UI compromises you'll need to make on
smaller screens.
Android Debug Bridge
 Used for a wide variety of developer tasks
 Read from the log file
 Show what android devices are available
 Install android applications (.apk files)
Android SDK Manager
 Android SDK separates tools, platforms, and other components into
packages.
 SDK Manager help you to maintain these packages.
 Add new packages.
 Update packages.
 Delete packages.
Run on the Emulator
 Step 1 - Create an AVD
 Step 2 - Run the app from Android Studio
Run on a Real Device
 Step 1 - Set up your device
 install the appropriate USB driver for your device.
 Enable USB debugging on your device.
 Enable on phone to use developer features.
 In the main apps screen select Settings -> Applications -> Development -> USB
debugging (it needs to be checked)
 Step 2 - Run the app from Android Studio
DEMO
Questions?
Thank you.

More Related Content

What's hot

Android application structure
Android application structureAndroid application structure
Android application structureAlexey Ustenko
 
Android app development
Android app developmentAndroid app development
Android app development
PiyushBhambhani1
 
Android Basic- CMC
Android Basic- CMCAndroid Basic- CMC
Android Basic- CMC
Pragati Singh
 
Android architecture
Android architecture Android architecture
Android architecture
Trong-An Bui
 
IntroToAndroid
IntroToAndroidIntroToAndroid
IntroToAndroid
Quickoffice Test
 
Android studio 2.0: default project structure
Android studio 2.0: default project structureAndroid studio 2.0: default project structure
Android studio 2.0: default project structure
Vyara Georgieva
 
Android overview
Android overviewAndroid overview
Android overview
Has Taiar
 
Android application development for TresmaxAsia
Android application development for TresmaxAsiaAndroid application development for TresmaxAsia
Android application development for TresmaxAsia
Michael Angelo Rivera
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginnerAjailal Parackal
 
Android application-component
Android application-componentAndroid application-component
Android application-component
Ly Haza
 
Android developer interview questions with answers pdf
Android developer interview questions with answers pdfAndroid developer interview questions with answers pdf
Android developer interview questions with answers pdf
azlist247
 
Android architecture components
Android architecture components Android architecture components
Android architecture components
azzeddine chenine
 
Android
AndroidAndroid
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
Siva Kumar reddy Vasipally
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answers
kavinilavuG
 
15 android libraries for app development
15 android libraries for app development15 android libraries for app development
15 android libraries for app development
Concetto Labs
 
Introduction to android basics
Introduction to android basicsIntroduction to android basics
Introduction to android basics
Hasam Panezai
 
DevFest Sul 2014 - Android 4 lazy iOS Devs
DevFest Sul 2014 - Android 4 lazy iOS DevsDevFest Sul 2014 - Android 4 lazy iOS Devs
DevFest Sul 2014 - Android 4 lazy iOS Devs
Jackson F. de A. Mafra
 

What's hot (20)

Android application structure
Android application structureAndroid application structure
Android application structure
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Android app development
Android app developmentAndroid app development
Android app development
 
Android Basic- CMC
Android Basic- CMCAndroid Basic- CMC
Android Basic- CMC
 
Android architecture
Android architecture Android architecture
Android architecture
 
IntroToAndroid
IntroToAndroidIntroToAndroid
IntroToAndroid
 
Android studio 2.0: default project structure
Android studio 2.0: default project structureAndroid studio 2.0: default project structure
Android studio 2.0: default project structure
 
Android overview
Android overviewAndroid overview
Android overview
 
Android application development for TresmaxAsia
Android application development for TresmaxAsiaAndroid application development for TresmaxAsia
Android application development for TresmaxAsia
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
 
Android application-component
Android application-componentAndroid application-component
Android application-component
 
Android developer interview questions with answers pdf
Android developer interview questions with answers pdfAndroid developer interview questions with answers pdf
Android developer interview questions with answers pdf
 
Android architecture components
Android architecture components Android architecture components
Android architecture components
 
Android
AndroidAndroid
Android
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answers
 
Ci for Android
Ci for AndroidCi for Android
Ci for Android
 
15 android libraries for app development
15 android libraries for app development15 android libraries for app development
15 android libraries for app development
 
Introduction to android basics
Introduction to android basicsIntroduction to android basics
Introduction to android basics
 
DevFest Sul 2014 - Android 4 lazy iOS Devs
DevFest Sul 2014 - Android 4 lazy iOS DevsDevFest Sul 2014 - Android 4 lazy iOS Devs
DevFest Sul 2014 - Android 4 lazy iOS Devs
 

Similar to Getting Started with Android Application Development

Android Basic
Android BasicAndroid Basic
Android Basic
Nirav Ranpara
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
Dharani Kumar Madduri
 
Questions About Android Application Development
Questions About Android Application DevelopmentQuestions About Android Application Development
Questions About Android Application Development
Adeel Rasheed
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paperSravan Reddy
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
Ted Chien
 
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
Introduction to androidIntroduction to android
Introduction to android
zeelpatel0504
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1
Kainda Kiniel Daka
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
Parinita03
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architecture
Dilip Singh
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
nazzf
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptx
muthulakshmi cse
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
Mohammad Taj
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
saitej15
 
Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfOs eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfweerabahu
 
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
Nitin Bhasin
 
Android primer
Android primerAndroid primer
Android primer
intellisenseit
 
Android Basic Concept
Android Basic Concept Android Basic Concept
Android Basic Concept
University of Potsdam
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
Omolara Adejuwon
 

Similar to Getting Started with Android Application Development (20)

Android Basic
Android BasicAndroid Basic
Android Basic
 
Android
Android Android
Android
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Questions About Android Application Development
Questions About Android Application DevelopmentQuestions About Android Application Development
Questions About Android Application Development
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paper
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
Android development training programme Day 1
Android development training programme Day 1Android development training programme Day 1
Android development training programme Day 1
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architecture
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
 
Technology and Android.pptx
Technology and Android.pptxTechnology and Android.pptx
Technology and Android.pptx
 
Android development tutorial
Android development tutorialAndroid development tutorial
Android development tutorial
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
 
Os eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdfOs eclipse-androidwidget-pdf
Os eclipse-androidwidget-pdf
 
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
 
Android primer
Android primerAndroid primer
Android primer
 
Android Basic Concept
Android Basic Concept Android Basic Concept
Android Basic Concept
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 

Getting Started with Android Application Development

  • 1. Getting Started with Android Application Development
  • 2. What is Android  It is a open source software platform and operating system for mobile devices.  Developed by Google and later the Open Handset Alliance (OHA)  Allows writing managed code in the Java language.
  • 5. Android Components  Activity  provides a screen with which users can interact in order to do something.  Intents  Intents are asynchronous message object which allow the application to request functionality from other components of the Android system, e.g. from Services or Activities.  Services  Services perform long-running operations in the background and does not provide a user interface.
  • 6. Android Components  Content Providers  A ContentProvider provides a structured interface to application data. Via a ContentProvider your application can share data with other applications.  App Widgets  Widgets are miniature application views that can be embedded in other applications (such as the Home screen) and receive periodic updates.
  • 8. Project Components – Android Studio  Main Project  .idea  Project Module (app)  Build  libs  src  gradle  External Libraries
  • 9. Project Components – Android Studio  Main Project  This would be entire project context.  A project is an organizational unit that represents a complete software solution.  .idea  storing project specific metadata.
  • 10. Project Components – Android Studio  Project Module (app)  This is the actual project folder where your application code resides.  has 3 sub directories  Build  complete output of the make process i.e. classes.dex, compiled classes and resources, etc.  libs  hold the libraries or .jar files that needed in the project.  src
  • 11. Project Components – Android Studio  src:  have both application code and android unit test script.  Have two folders  androidTest  main  two subfolders java and res.  The java folder contains all the java codes and res contains drawables, layouts, etc.
  • 12. Project Components – Android Studio  Gradle  This is where the gradle build system’s jar wrapper. i.e. this jar is how AS communicates with gradle installed in Windows (the OS in my case).  External Libraries  This is not actually a folder but a place where Referenced Libraries and information on targeted platform SDK is shown.
  • 13. Supporting Different Densities  Densities  xxhdpi: 2.5  xhdpi:2.0  hdpi: 1.5  mdpi: 1.0 (baseline)  ldpi: 0.75  0ne approach is to work in the base standard (normal size and MDPI) and scale it up or down for the other buckets.  Another approach is to start with the device with the largest screen size, and then scale down and figure out the UI compromises you'll need to make on smaller screens.
  • 14. Android Debug Bridge  Used for a wide variety of developer tasks  Read from the log file  Show what android devices are available  Install android applications (.apk files)
  • 15. Android SDK Manager  Android SDK separates tools, platforms, and other components into packages.  SDK Manager help you to maintain these packages.  Add new packages.  Update packages.  Delete packages.
  • 16. Run on the Emulator  Step 1 - Create an AVD  Step 2 - Run the app from Android Studio
  • 17. Run on a Real Device  Step 1 - Set up your device  install the appropriate USB driver for your device.  Enable USB debugging on your device.  Enable on phone to use developer features.  In the main apps screen select Settings -> Applications -> Development -> USB debugging (it needs to be checked)  Step 2 - Run the app from Android Studio
  • 18. DEMO

Editor's Notes

  1. Kernal- software or hardware binding Libraries-Android has its own libraries, which is written in C/C++ Dalvik - the software that runs the apps on android devices. App framework - the toolkit that all applications use.It provide utilities to build apps.