SlideShare una empresa de Scribd logo
1 de 25
Android
Development
Orientation for
Starters

Joemarie Comeros Amparo
What is Android?
Android is an open mobile phone platform that was
   developed by Google and later by Open Handset
   Alliance. Google defines Android as a "software
   stack" for mobile phones.

Software stack is made up of operating system(the
   platform on which everything runs), the middleware
   (the programming that allows applications to talk to a
   network and to one another) and the applications
   (the actual programs that phone will run)
Brief History
July 2005 - Google Inc. bought from Danger In

Open Handset Alliance was formed headed by Google
  which is composed of companies like Intel, T-Mobile,
  Spring Nextel and more.

In 2008, Android became available as an open source
    and ASOP(Android Open Source Project) is
    responsible for maintaining and development of
    android.

February 2009, the first android version was released,
   Android 1.1. for Mobile G1.
Brief History - continuation
Android OS Versions:
 > Android 1.1
 > Android 1.5 Cupcake
 > Android 1.6 Donut
 > Android 2.0/2.1 Eclair
 > Android 2.2.x Froyo
 > Android 2.3.x Gingerbread
 > Android 3. x Honeycomb
 > Android 4.0.x Ice Cream Sandwich
 > Android 4.1 Jelly Bean
Android Version Market Share
What will you need?

    • Computer running
      Windows, Linux, or Mac OS X

    • Java SDK


    • Google Android SDK

    • Integrated Development Environment
      (IDE)
Installation


Please refer to:
http://developershaven.blogspot.com
Android Development Tool

  Android SDK and Virtual Device Manager

  Android Emulator / Phone

  Dalvik Debug Monitoring Service

  SQLite3

  …more
Application Components

     Activity
• Present a visual user interface for one focused endeavor the user can undertake
• Example: a list of menu items users can choose from

    Services
• Run in the background for an indefinite period of time
• Example: calculate and provide the result to activities that need it

   Broadcast Receivers
• Receive and react to broadcast announcements
• Example: announcements that the time zone has changed

 Content Providers
• Store and retrieve data and make it accessible to all applications
• Example: Android ships with a number of content providers for common

     Intents
• Hold the content of a message
• Example: convey a request for an activity to present an image to the user or let the
  user edit some text
Activities
Services

•   Run in the background
    o Can continue even if Activity that started it dies
    o Should be used if something needs to be done while the user
      is not interacting with application
           Otherwise, a thread is probably more applicable
    o Should create a new thread in the service to do work in, since
       the service runs in the main thread
•   Can be bound to an application
    o In which case will terminate when all applications bound to it
       unbind
    o Allows multiple applications to communicate with it via a
       common interface
•   Needs to be declared in manifest file
•   Like Activities, has a structured life cycle
Services
Project Components
      SRC
      • The project source code

      GEN
      • Auto generated code
      • Example: R.java

      Included libraries


      Resources
      • Drawables
      • Layout
      • Values like strings

      Manifest File
      • A must have xml file. Contains essential information about the
        system to the android system
XML

•   Used to define some of the resources
    o Layouts (UI)
    o Strings
•   Manifest file
•   Shouldn’t usually have to edit it directly,
    Eclipse can do that for you
•   Preferred way of creating UIs
    o Separates the description of the layout from any
      actual code that controls it
    o Can easily take a UI from one platform to another
R Class

•   Auto-generated: you shouldn’t edit it
•   Contains IDs of the project resources
•   Enforces good software engineering
•   Use findViewById and Resources object to
    get access to the resources
    o Ex. Button b = (Button)findViewById(R.id.button1)
    o Ex. getResources().getString(R.string.hello));
Layouts

•   Eclipse has a great UI creator
    o Generates the XML for you
•   Composed of View objects
•   Can be specified for portrait and landscape
    mode
    o Use same file name, so can make completely
      different UIs for the orientations without modifying
      any code
Layouts - continuation
Layouts - continuation

•   Click ‘Create’ to make layout modifications
•   When in portrait mode can select ‘Portrait’ to make
    a res sub folder for portrait layouts
    o Likewise for Landscape layouts while in landscape mode
    o Will create folders titled ‘layout-port’ and ‘layout-land’
•   Note: these ‘port’ and ‘land’ folders are examples of
    ‘alternate layouts’, see here for more info
    o   http://developer.android.com/guide/topics/resources/providing-resources.html

•   Avoid errors by making sure components have the
    same id in both orientations, and that you’ve tested
    each orientation thoroughly
Layouts - continuation
Running in Eclipse

•   Similar to launching a regular Java
    app, use the launch configurations
•   Specify an Android Application and create
    a new one
•   Specify activity to be run
•   Can select a manual option, so each time
    program is run, you are asked whether you
    want to use the actual phone or the
    emulator
    o Otherwise, it should be smart and use whichever
      one is available
Google Maps


Please refer to :

http://developershaven.blogspot.com
Google Maps
Google Maps

 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
   android:orientation="vertical"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   >

  <com.google.android.maps.MapView
    android:id="@+id/mapview1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:enabled="true"
    android:clickable="true"
    android:apiKey=“Your API Key Here" />

 </LinearLayout>
Resources & Acknowledgements
•   Installation: http://developershaven.blogspot.com
•   Google API: http://mfarhan133.wordpress.com/2010/10/01/generate-google-maps-api-key-for-android/
•   Android Developer’s Website : http://developer.android.com/index.html
•   Numerous Forums & other developer sites, including:
    o  http://www.javacodegeeks.com/2011/02/android-google-maps-tutorial.html
    o  http://efreedom.com/Question/1-6070968/Google-Maps-Api-Directions
    o  http://stackoverflow.com
    o    http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html
THANK YOU VERY MUCH!




Joemarie Comeros Amparo
Android Developer
Skype/Ymail/Gmail : joemarieamparo

Más contenido relacionado

La actualidad más candente

Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 
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 studioParinita03
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A NutshellTed Chien
 
Android studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksAndroid studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksUptech
 
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...Jason Conger
 
Android app development basics
Android app development basicsAndroid app development basics
Android app development basicsAnton Narusberg
 
Android Training For Beginner @DILO Bandung
Android Training For Beginner @DILO BandungAndroid Training For Beginner @DILO Bandung
Android Training For Beginner @DILO BandungAde Rifaldi
 
Android application-component
Android application-componentAndroid application-component
Android application-componentLy Haza
 
Generating efficient APK by Reducing Size and Improving Performance
Generating efficient APK by Reducing Size and Improving PerformanceGenerating efficient APK by Reducing Size and Improving Performance
Generating efficient APK by Reducing Size and Improving PerformanceParesh Mayani
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming BasicsEueung Mulyana
 
Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE Samrat Tayade
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedDay 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedAhsanul Karim
 
Introduction to Android Studio
Introduction to Android StudioIntroduction to Android Studio
Introduction to Android StudioMichael Pan
 
Android apps development
Android apps developmentAndroid apps development
Android apps developmentRaman Pandey
 
Introduction & App Structure
Introduction & App StructureIntroduction & App Structure
Introduction & App StructureCITSimon
 

La actualidad más candente (20)

Android session 3
Android session 3Android session 3
Android session 3
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Android session 1
Android session 1Android session 1
Android session 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 In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
Android studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksAndroid studio 2.2 Tips and Tricks
Android studio 2.2 Tips and Tricks
 
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
 
Android app development basics
Android app development basicsAndroid app development basics
Android app development basics
 
Android Training For Beginner @DILO Bandung
Android Training For Beginner @DILO BandungAndroid Training For Beginner @DILO Bandung
Android Training For Beginner @DILO Bandung
 
Android application-component
Android application-componentAndroid application-component
Android application-component
 
Generating efficient APK by Reducing Size and Improving Performance
Generating efficient APK by Reducing Size and Improving PerformanceGenerating efficient APK by Reducing Size and Improving Performance
Generating efficient APK by Reducing Size and Improving Performance
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming Basics
 
Android studio
Android studioAndroid studio
Android studio
 
Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedDay 1 Android: Before Getting Started
Day 1 Android: Before Getting Started
 
Unit2
Unit2Unit2
Unit2
 
Introduction to Android Studio
Introduction to Android StudioIntroduction to Android Studio
Introduction to Android Studio
 
Training android
Training androidTraining android
Training android
 
Android apps development
Android apps developmentAndroid apps development
Android apps development
 
Introduction & App Structure
Introduction & App StructureIntroduction & App Structure
Introduction & App Structure
 

Similar a Android development orientation for starters v2

Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_authlzongren
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi androidsusijanny
 
Android app development
Android app developmentAndroid app development
Android app developmentAbhishek Saini
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android StudioSuyash Srijan
 
Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Manoj Ellappan
 
Android Workshop_1
Android Workshop_1Android Workshop_1
Android Workshop_1Purvik Rana
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Javaamaankhan
 
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionMatteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionDuckMa
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions newJoe Jacob
 
Android Development Tutorial
Android Development TutorialAndroid Development Tutorial
Android Development TutorialGermán Bringas
 
Part 2 android application development 101
Part 2 android application development 101Part 2 android application development 101
Part 2 android application development 101Michael Angelo Rivera
 
Android Workshop Part 1
Android Workshop Part 1Android Workshop Part 1
Android Workshop Part 1NAILBITER
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android ApplicationArcadian Learning
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app developmentAbhishekKumar4779
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbaifaizrashid1995
 

Similar a Android development orientation for starters v2 (20)

Android - Android Application Configuration
Android - Android Application ConfigurationAndroid - Android Application Configuration
Android - Android Application Configuration
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
 
Android app development
Android app developmentAndroid app development
Android app development
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android Studio
 
Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1
 
Android Workshop_1
Android Workshop_1Android Workshop_1
Android Workshop_1
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionMatteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
Android Development Tutorial
Android Development TutorialAndroid Development Tutorial
Android Development Tutorial
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Part 2 android application development 101
Part 2 android application development 101Part 2 android application development 101
Part 2 android application development 101
 
Android Workshop Part 1
Android Workshop Part 1Android Workshop Part 1
Android Workshop Part 1
 
First step in android
First step in androidFirst step in android
First step in android
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbai
 

Último

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Último (20)

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

Android development orientation for starters v2

  • 2. What is Android? Android is an open mobile phone platform that was developed by Google and later by Open Handset Alliance. Google defines Android as a "software stack" for mobile phones. Software stack is made up of operating system(the platform on which everything runs), the middleware (the programming that allows applications to talk to a network and to one another) and the applications (the actual programs that phone will run)
  • 3. Brief History July 2005 - Google Inc. bought from Danger In Open Handset Alliance was formed headed by Google which is composed of companies like Intel, T-Mobile, Spring Nextel and more. In 2008, Android became available as an open source and ASOP(Android Open Source Project) is responsible for maintaining and development of android. February 2009, the first android version was released, Android 1.1. for Mobile G1.
  • 4. Brief History - continuation Android OS Versions: > Android 1.1 > Android 1.5 Cupcake > Android 1.6 Donut > Android 2.0/2.1 Eclair > Android 2.2.x Froyo > Android 2.3.x Gingerbread > Android 3. x Honeycomb > Android 4.0.x Ice Cream Sandwich > Android 4.1 Jelly Bean
  • 6. What will you need? • Computer running Windows, Linux, or Mac OS X • Java SDK • Google Android SDK • Integrated Development Environment (IDE)
  • 8. Android Development Tool Android SDK and Virtual Device Manager Android Emulator / Phone Dalvik Debug Monitoring Service SQLite3 …more
  • 9. Application Components Activity • Present a visual user interface for one focused endeavor the user can undertake • Example: a list of menu items users can choose from Services • Run in the background for an indefinite period of time • Example: calculate and provide the result to activities that need it Broadcast Receivers • Receive and react to broadcast announcements • Example: announcements that the time zone has changed Content Providers • Store and retrieve data and make it accessible to all applications • Example: Android ships with a number of content providers for common Intents • Hold the content of a message • Example: convey a request for an activity to present an image to the user or let the user edit some text
  • 11. Services • Run in the background o Can continue even if Activity that started it dies o Should be used if something needs to be done while the user is not interacting with application  Otherwise, a thread is probably more applicable o Should create a new thread in the service to do work in, since the service runs in the main thread • Can be bound to an application o In which case will terminate when all applications bound to it unbind o Allows multiple applications to communicate with it via a common interface • Needs to be declared in manifest file • Like Activities, has a structured life cycle
  • 13. Project Components SRC • The project source code GEN • Auto generated code • Example: R.java Included libraries Resources • Drawables • Layout • Values like strings Manifest File • A must have xml file. Contains essential information about the system to the android system
  • 14. XML • Used to define some of the resources o Layouts (UI) o Strings • Manifest file • Shouldn’t usually have to edit it directly, Eclipse can do that for you • Preferred way of creating UIs o Separates the description of the layout from any actual code that controls it o Can easily take a UI from one platform to another
  • 15. R Class • Auto-generated: you shouldn’t edit it • Contains IDs of the project resources • Enforces good software engineering • Use findViewById and Resources object to get access to the resources o Ex. Button b = (Button)findViewById(R.id.button1) o Ex. getResources().getString(R.string.hello));
  • 16. Layouts • Eclipse has a great UI creator o Generates the XML for you • Composed of View objects • Can be specified for portrait and landscape mode o Use same file name, so can make completely different UIs for the orientations without modifying any code
  • 18. Layouts - continuation • Click ‘Create’ to make layout modifications • When in portrait mode can select ‘Portrait’ to make a res sub folder for portrait layouts o Likewise for Landscape layouts while in landscape mode o Will create folders titled ‘layout-port’ and ‘layout-land’ • Note: these ‘port’ and ‘land’ folders are examples of ‘alternate layouts’, see here for more info o http://developer.android.com/guide/topics/resources/providing-resources.html • Avoid errors by making sure components have the same id in both orientations, and that you’ve tested each orientation thoroughly
  • 20. Running in Eclipse • Similar to launching a regular Java app, use the launch configurations • Specify an Android Application and create a new one • Specify activity to be run • Can select a manual option, so each time program is run, you are asked whether you want to use the actual phone or the emulator o Otherwise, it should be smart and use whichever one is available
  • 21. Google Maps Please refer to : http://developershaven.blogspot.com
  • 23. Google Maps <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <com.google.android.maps.MapView android:id="@+id/mapview1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey=“Your API Key Here" /> </LinearLayout>
  • 24. Resources & Acknowledgements • Installation: http://developershaven.blogspot.com • Google API: http://mfarhan133.wordpress.com/2010/10/01/generate-google-maps-api-key-for-android/ • Android Developer’s Website : http://developer.android.com/index.html • Numerous Forums & other developer sites, including: o http://www.javacodegeeks.com/2011/02/android-google-maps-tutorial.html o http://efreedom.com/Question/1-6070968/Google-Maps-Api-Directions o http://stackoverflow.com o http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html
  • 25. THANK YOU VERY MUCH! Joemarie Comeros Amparo Android Developer Skype/Ymail/Gmail : joemarieamparo