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

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Último (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

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