SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Android An intro to the open platform!
Who?

   Kieran Gutteridge

   @kgutteridge

   Developing for mobile devices since 2002
Android

   Open handset alliance
   http://developer.android.com
   Based on Linux 2.6

   Android allows Java developers far lower access to
    the phone than was possible in J2ME, ie 0870
Open Handset Alliance
Why Android?
Cost

                           Android


Low
                            iPhone
                    J2ME




High   Wimo

       Symbian


        Difficult          Easy
Appstores

   Android app market
    – Self certification, this works on the internet!
    – No approvals
    – Piracy is a problem as with others
    – Payments not rolled out across all countries

   Alternatives
    – Self distribution
    – other app stores
Penetration of versions




   http://developer.android.com/resources/dashboard/
    platform-versions.html
Architecture
Android Code

• Highly optimized VM, compiled byte is optimized for
  mobile devices

• End result is NOT the same byte code as Java,
   o dx in the sdk takes compiled Java class files and
     converts them into .dex

• No JIT until Froyo 2.2

• Built with security and performances (battery life) in
  mind
Tools

• SDK
   o   Available at http://developer.android.com/sdk/index.html

• Eclipse
   o   3.3(Europa) or 3.4 (Ganymede)

• Eclipse Plugin
   o XP,Vista, Linux, x86 Mac 10.4.8 or later
   o http://developer.android.com/sdk/eclipse-adt.html

• Leave the emulator running!
   o   Exact opposite to J2ME and BREW, your app will be deployed
       each subsequent run or debug
What makes an app

     APK file
     One of more activities (can be a headless)
     AndroidManifest.xml
     Views think Swing/LWUIT
     Layouts xml based editor
     What makes Android great
       intents
       contentproviders
       notifcations
Defaults - what defaults
Top tips

       Async task
    
          http://developer.android.com/reference/android/os/AsyncTask.html

       Draw 9 Patch
         http://developer.android.com/guide/developing/tools/draw9patch.html

       Toast
         http://developer.android.com/reference/android/widget/Toast.html

       Webkit
         http://developer.android.com/reference/android/webkit/package-summary.html
Optimisation

• Creation of Objects
• Strings are objects!
• Use of static and final
• Getters and setters
• Field lookups in larger loops
• Fixed point rather than floats
• Multi Dimensional Arrays
Questions
Android a brief intro

Weitere ähnliche Inhalte

Was ist angesagt?

COSCUP 2017 FACE OFF
COSCUP 2017 FACE OFFCOSCUP 2017 FACE OFF
COSCUP 2017 FACE OFFPRADA Hsiung
 
Mobile OS Мобильный операционные системы вступление сравнение
Mobile OS Мобильный операционные системы вступление сравнение Mobile OS Мобильный операционные системы вступление сравнение
Mobile OS Мобильный операционные системы вступление сравнение Nikita Lozhnikov
 
Mobile Development Platforms
Mobile Development PlatformsMobile Development Platforms
Mobile Development PlatformsAndri Yadi
 
The magic of flutter
The magic of flutterThe magic of flutter
The magic of flutterShady Selim
 
[Android] Introduction to Android Programming
[Android] Introduction to Android Programming[Android] Introduction to Android Programming
[Android] Introduction to Android ProgrammingNikmesoft Ltd
 
ROSCo2019 MoveIt Workshop Recap
ROSCo2019 MoveIt Workshop RecapROSCo2019 MoveIt Workshop Recap
ROSCo2019 MoveIt Workshop RecapTomoya Fujita
 
Getting started with the Ionic Framework
Getting started with the Ionic FrameworkGetting started with the Ionic Framework
Getting started with the Ionic FrameworkAnuradha Weeraman
 
Ionic - Hybrid Mobile Application Framework
Ionic - Hybrid Mobile Application FrameworkIonic - Hybrid Mobile Application Framework
Ionic - Hybrid Mobile Application FrameworkSanjay Kumar
 
Hybrid App Development, Redefined
Hybrid App Development, RedefinedHybrid App Development, Redefined
Hybrid App Development, RedefinedIonic Framework
 
Reimagining Cordova: Building Cross-Platform Web Apps with Capacitor
Reimagining Cordova: Building Cross-Platform Web Apps with CapacitorReimagining Cordova: Building Cross-Platform Web Apps with Capacitor
Reimagining Cordova: Building Cross-Platform Web Apps with CapacitorIonic Framework
 
C# Powered Robots, C# Powered Mobile Apps
C# Powered Robots, C# Powered Mobile AppsC# Powered Robots, C# Powered Mobile Apps
C# Powered Robots, C# Powered Mobile AppsJames Montemagno
 
Android app development with kotlin heralding the future
Android app development with kotlin heralding the futureAndroid app development with kotlin heralding the future
Android app development with kotlin heralding the futureSPEC INDIA
 
Android to TIZEN conversion service
Android to TIZEN conversion serviceAndroid to TIZEN conversion service
Android to TIZEN conversion serviceHyeokgon Ryu
 
Ionic Native: Native-powered apps, without the hassle
Ionic Native: Native-powered apps, without the hassleIonic Native: Native-powered apps, without the hassle
Ionic Native: Native-powered apps, without the hassleIonic Framework
 

Was ist angesagt? (20)

COSCUP 2017 FACE OFF
COSCUP 2017 FACE OFFCOSCUP 2017 FACE OFF
COSCUP 2017 FACE OFF
 
Ios vs android
Ios vs androidIos vs android
Ios vs android
 
Mobile OS Мобильный операционные системы вступление сравнение
Mobile OS Мобильный операционные системы вступление сравнение Mobile OS Мобильный операционные системы вступление сравнение
Mobile OS Мобильный операционные системы вступление сравнение
 
Flutter introduction
Flutter introductionFlutter introduction
Flutter introduction
 
Drone sdk showdown
Drone sdk showdownDrone sdk showdown
Drone sdk showdown
 
Mobile Development Platforms
Mobile Development PlatformsMobile Development Platforms
Mobile Development Platforms
 
The magic of flutter
The magic of flutterThe magic of flutter
The magic of flutter
 
Native vs. Web App
Native vs. Web AppNative vs. Web App
Native vs. Web App
 
[Android] Introduction to Android Programming
[Android] Introduction to Android Programming[Android] Introduction to Android Programming
[Android] Introduction to Android Programming
 
ROSCo2019 MoveIt Workshop Recap
ROSCo2019 MoveIt Workshop RecapROSCo2019 MoveIt Workshop Recap
ROSCo2019 MoveIt Workshop Recap
 
Getting started with the Ionic Framework
Getting started with the Ionic FrameworkGetting started with the Ionic Framework
Getting started with the Ionic Framework
 
Ionic - Hybrid Mobile Application Framework
Ionic - Hybrid Mobile Application FrameworkIonic - Hybrid Mobile Application Framework
Ionic - Hybrid Mobile Application Framework
 
Hybrid App Development, Redefined
Hybrid App Development, RedefinedHybrid App Development, Redefined
Hybrid App Development, Redefined
 
Reimagining Cordova: Building Cross-Platform Web Apps with Capacitor
Reimagining Cordova: Building Cross-Platform Web Apps with CapacitorReimagining Cordova: Building Cross-Platform Web Apps with Capacitor
Reimagining Cordova: Building Cross-Platform Web Apps with Capacitor
 
Capacitor 2.0 Launch
Capacitor 2.0 LaunchCapacitor 2.0 Launch
Capacitor 2.0 Launch
 
C# Powered Robots, C# Powered Mobile Apps
C# Powered Robots, C# Powered Mobile AppsC# Powered Robots, C# Powered Mobile Apps
C# Powered Robots, C# Powered Mobile Apps
 
Android app development with kotlin heralding the future
Android app development with kotlin heralding the futureAndroid app development with kotlin heralding the future
Android app development with kotlin heralding the future
 
Android to TIZEN conversion service
Android to TIZEN conversion serviceAndroid to TIZEN conversion service
Android to TIZEN conversion service
 
Android Things Introduction
Android Things IntroductionAndroid Things Introduction
Android Things Introduction
 
Ionic Native: Native-powered apps, without the hassle
Ionic Native: Native-powered apps, without the hassleIonic Native: Native-powered apps, without the hassle
Ionic Native: Native-powered apps, without the hassle
 

Ähnlich wie Android a brief intro

Android and android phones
Android and android phonesAndroid and android phones
Android and android phonesDennise Layague
 
Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009sullis
 
Android presantation
Android presantationAndroid presantation
Android presantationUdayJethva
 
Mobile Developer's Guide To The Galaxy, 5th edition
Mobile Developer's Guide To The Galaxy, 5th editionMobile Developer's Guide To The Galaxy, 5th edition
Mobile Developer's Guide To The Galaxy, 5th editionMarco Tabor
 
An introduction to Android
An introduction to AndroidAn introduction to Android
An introduction to AndroidRajesh Jambukia
 
Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009sullis
 
Android before getting started
Android before getting startedAndroid before getting started
Android before getting startedAhsanul Karim
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedDay 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedAhsanul Karim
 
Cross platform-mobile-applications
Cross platform-mobile-applicationsCross platform-mobile-applications
Cross platform-mobile-applicationsmailalamin
 
Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement Shubham Pahune
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfAbdullahMunir32
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app developmentAbhishekKumar4779
 
Getting Started with Android Development
Getting Started with Android DevelopmentGetting Started with Android Development
Getting Started with Android DevelopmentEdureka!
 
Software training report
Software training reportSoftware training report
Software training reportNatasha Bains
 

Ähnlich wie Android a brief intro (20)

Android and android phones
Android and android phonesAndroid and android phones
Android and android phones
 
Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009Getting Started with Android - OSSPAC 2009
Getting Started with Android - OSSPAC 2009
 
Android presantation
Android presantationAndroid presantation
Android presantation
 
AndroidOverview
AndroidOverviewAndroidOverview
AndroidOverview
 
Mobile Developer's Guide To The Galaxy, 5th edition
Mobile Developer's Guide To The Galaxy, 5th editionMobile Developer's Guide To The Galaxy, 5th edition
Mobile Developer's Guide To The Galaxy, 5th edition
 
An introduction to Android
An introduction to AndroidAn introduction to Android
An introduction to Android
 
Android Platform Architecture
Android Platform ArchitectureAndroid Platform Architecture
Android Platform Architecture
 
Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009
 
Android before getting started
Android before getting startedAndroid before getting started
Android before getting started
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedDay 1 Android: Before Getting Started
Day 1 Android: Before Getting Started
 
Cross platform-mobile-applications
Cross platform-mobile-applicationsCross platform-mobile-applications
Cross platform-mobile-applications
 
Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement
 
Mobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdfMobile Application Development-Lecture 03 & 04.pdf
Mobile Application Development-Lecture 03 & 04.pdf
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
Android technology
Android technology Android technology
Android technology
 
Getting Started with Android Development
Getting Started with Android DevelopmentGetting Started with Android Development
Getting Started with Android Development
 
Software training report
Software training reportSoftware training report
Software training report
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to Android
 
Android
AndroidAndroid
Android
 
Android
AndroidAndroid
Android
 

Mehr von Kieran Gutteridge

OpenMIC March-2012.making money on mobile
OpenMIC March-2012.making money on mobileOpenMIC March-2012.making money on mobile
OpenMIC March-2012.making money on mobileKieran Gutteridge
 
Winter hackathon intohand one voice olympic app
Winter hackathon intohand one voice olympic appWinter hackathon intohand one voice olympic app
Winter hackathon intohand one voice olympic appKieran Gutteridge
 
Londroid - Non native development
Londroid - Non native developmentLondroid - Non native development
Londroid - Non native developmentKieran Gutteridge
 
BCS Mobile development choices
BCS Mobile development choicesBCS Mobile development choices
BCS Mobile development choicesKieran Gutteridge
 
Into to Android Live Wallpapers
Into to Android Live WallpapersInto to Android Live Wallpapers
Into to Android Live WallpapersKieran Gutteridge
 
App Stores Global Opportunities
App Stores Global OpportunitiesApp Stores Global Opportunities
App Stores Global OpportunitiesKieran Gutteridge
 
Android, iPhone and application development
Android, iPhone and application developmentAndroid, iPhone and application development
Android, iPhone and application developmentKieran Gutteridge
 

Mehr von Kieran Gutteridge (10)

Spring hackathon
Spring hackathonSpring hackathon
Spring hackathon
 
OpenMIC March-2012.phonegap
OpenMIC March-2012.phonegapOpenMIC March-2012.phonegap
OpenMIC March-2012.phonegap
 
OpenMIC March-2012.making money on mobile
OpenMIC March-2012.making money on mobileOpenMIC March-2012.making money on mobile
OpenMIC March-2012.making money on mobile
 
Winter hackathon intohand one voice olympic app
Winter hackathon intohand one voice olympic appWinter hackathon intohand one voice olympic app
Winter hackathon intohand one voice olympic app
 
Londroid - Non native development
Londroid - Non native developmentLondroid - Non native development
Londroid - Non native development
 
Hack camp 2011
Hack camp 2011Hack camp 2011
Hack camp 2011
 
BCS Mobile development choices
BCS Mobile development choicesBCS Mobile development choices
BCS Mobile development choices
 
Into to Android Live Wallpapers
Into to Android Live WallpapersInto to Android Live Wallpapers
Into to Android Live Wallpapers
 
App Stores Global Opportunities
App Stores Global OpportunitiesApp Stores Global Opportunities
App Stores Global Opportunities
 
Android, iPhone and application development
Android, iPhone and application developmentAndroid, iPhone and application development
Android, iPhone and application development
 

Android a brief intro

  • 1. Android An intro to the open platform!
  • 2. Who?  Kieran Gutteridge  @kgutteridge  Developing for mobile devices since 2002
  • 3. Android  Open handset alliance  http://developer.android.com  Based on Linux 2.6  Android allows Java developers far lower access to the phone than was possible in J2ME, ie 0870
  • 5. Why Android? Cost Android Low iPhone J2ME High Wimo Symbian Difficult Easy
  • 6. Appstores  Android app market – Self certification, this works on the internet! – No approvals – Piracy is a problem as with others – Payments not rolled out across all countries  Alternatives – Self distribution – other app stores
  • 7. Penetration of versions  http://developer.android.com/resources/dashboard/ platform-versions.html
  • 9. Android Code • Highly optimized VM, compiled byte is optimized for mobile devices • End result is NOT the same byte code as Java, o dx in the sdk takes compiled Java class files and converts them into .dex • No JIT until Froyo 2.2 • Built with security and performances (battery life) in mind
  • 10. Tools • SDK o Available at http://developer.android.com/sdk/index.html • Eclipse o 3.3(Europa) or 3.4 (Ganymede) • Eclipse Plugin o XP,Vista, Linux, x86 Mac 10.4.8 or later o http://developer.android.com/sdk/eclipse-adt.html • Leave the emulator running! o Exact opposite to J2ME and BREW, your app will be deployed each subsequent run or debug
  • 11. What makes an app  APK file  One of more activities (can be a headless)  AndroidManifest.xml  Views think Swing/LWUIT  Layouts xml based editor  What makes Android great  intents  contentproviders  notifcations
  • 12. Defaults - what defaults
  • 13. Top tips  Async task  http://developer.android.com/reference/android/os/AsyncTask.html  Draw 9 Patch  http://developer.android.com/guide/developing/tools/draw9patch.html  Toast  http://developer.android.com/reference/android/widget/Toast.html  Webkit  http://developer.android.com/reference/android/webkit/package-summary.html
  • 14. Optimisation • Creation of Objects • Strings are objects! • Use of static and final • Getters and setters • Field lookups in larger loops • Fixed point rather than floats • Multi Dimensional Arrays

Hinweis der Redaktion