Your SlideShare is downloading. ×
0
Android
                            Overview – Structure – Development




Freitag, 15. Oktober 2010
English slides
                            Still hoping for an english attendend, though.




Freitag, 15. Oktober 2010
Benjamin Reimold
                      • Angewandte Informatik @ DHBW
                            Stuttgart
              ...
Moritz Haarmann
                      • BSc @ HdM Stuttgart, Medieninformatik
                      • Mobile-Development, ...
Agenda

                      • Mobile operating systems - overview
                      • Android fundamentals
         ...
Mobile Operating
                               Systems
                               Overview & Comparison




Freitag, ...
Android OS
                      • Free, almost open source
                      • Based on a Linux kernel and a custom
 ...
Apple iOS
                      • Most popular smartphone OS for
                            consumers
                   ...
Blackberry OS
                      • Widely used in corporate environments
                      • High security standard...
Windows Phone 7

                      • „In the wild“ – still matters
                      • Lost market share dramatica...
US Smartphone Market
                    Shares - „in the wild“
                            iPhone    Android   Linux     ...
Android Fundamentals
                            OS Structure – Concepts




Freitag, 15. Oktober 2010
Architecture
                                                         Applications



                                    ...
Dalvik VM                       Größte Optimierung
                                                                       ...
Tools
                   • Eclipse
                            + Android Developer Tools
                            + And...
- „Shortcomings?“
             -„We call it personality!“
                      • No SOAP libraries included
             ...
Terms you should know
                            or have heard of




Freitag, 15. Oktober 2010
Activity

                      • Fundamental application building block
                      • „One screen“
            ...
Intents
                      • „Abstract Description of an operation to
                            be performed“
       ...
Application Context

                      • Runtime object provided by the system
                      • Look up service...
Other terms & stuff
                      • Services – background activities without UI
                      • Content pr...
Development Walkthrough
                            Ready, Set..




Freitag, 15. Oktober 2010
Development Walkthrough
                      • What does the app do?
                      • Create a project
           ...
Development Walkthrough
                      • Create the activity
                       • AndroidManifest.xml
         ...
Things to keep in mind
                      • Have a good user experience!
                      • Pay attention to the U...
The Android Market
               • Register as a developer for $29 using Google
                                         ...
Other interesting stuff
                      • Google Developer Events (not only on
                            Android) ...
Some advertiseing
                       There‘s the 1st event using „our new name“

                               Stuttg...
Thanks!
                            and now: Q&A!

Freitag, 15. Oktober 2010
Upcoming SlideShare
Loading in...5
×

Android Workshop at @majug by @derwildemomo and @elektrojunge

1,082

Published on

This are the slides of an android workshop held by Moritz Haarmann (@derwildemomo) and Benjamin Reimold (@elektrojunge) at an event by Mannheim Java Usergroup (@majug) on 15th October, 2010 at University of Mannheim.

The slides cover an introduction to various mobile os, the important concepts of the android os and various other important facts and information about the android ecosystem.

Feel free to distribute this presentation under Creative Commons - Non Commercial Licence

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,082
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
27
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Android Workshop at @majug by @derwildemomo and @elektrojunge"

  1. 1. Android Overview – Structure – Development Freitag, 15. Oktober 2010
  2. 2. English slides Still hoping for an english attendend, though. Freitag, 15. Oktober 2010
  3. 3. Benjamin Reimold • Angewandte Informatik @ DHBW Stuttgart • Mobile Development, (Android/WinMo/…) • started with JEE, a lot of .Net recently • also a music and book addict,... • aformatik Training & Consulting • Twitter: @elektrojunge • Member of GTUG NA Freitag, 15. Oktober 2010
  4. 4. Moritz Haarmann • BSc @ HdM Stuttgart, Medieninformatik • Mobile-Development, iPhone & Android • Too much Java EE • Vollzeit-Nerd • CaperWhite GmbH • Twitter: @derwildemomo • Founder of GTUG NA Freitag, 15. Oktober 2010
  5. 5. Agenda • Mobile operating systems - overview • Android fundamentals • The walkthrough • Android market • Other interesting stuff Freitag, 15. Oktober 2010
  6. 6. Mobile Operating Systems Overview & Comparison Freitag, 15. Oktober 2010
  7. 7. Android OS • Free, almost open source • Based on a Linux kernel and a custom virtual machine (more later) • Most smartphones bought in the US are Androids ( 8/2010 ) • Google, you know. Freitag, 15. Oktober 2010
  8. 8. Apple iOS • Most popular smartphone OS for consumers • Growing importance for usage in enterprise („consumerized IT“) • Closed, yet very powerful platform • Based on Unix • Requires: Objective-C skills, money & a mac Freitag, 15. Oktober 2010
  9. 9. Blackberry OS • Widely used in corporate environments • High security standards & detailed administration (BES) • Uses Java technology (Java ME + proprietary stuff) • Closely linked with the online services offered Freitag, 15. Oktober 2010
  10. 10. Windows Phone 7 • „In the wild“ – still matters • Lost market share dramatically over the last years • Windows Phone 7 to bring Microsoft back • Windows Phone 7 ~ iOS 2 Freitag, 15. Oktober 2010
  11. 11. US Smartphone Market Shares - „in the wild“ iPhone Android Linux WiMo RIM WebOS Symbian • overall smartphone 4%2% penetration • 23% 35% 28% • lates numbers from Nielsen • Android 19% Share of Nokia Phones Worldwide Gartner 2010: 9% • 34,2 % Nokia Handys including 3% phones Blackberry 31% 19% feature In August, Android phones were • the most sold mobile OS in the US iPhone 28% Nielsen, Q1/2010 http://blog.nielsen.com/nielsenwire/online_mobile/iphone-vs-android/ Freitag, 15. Oktober 2010
  12. 12. Android Fundamentals OS Structure – Concepts Freitag, 15. Oktober 2010
  13. 13. Architecture Applications Application Framework basically everything your application will interact with Libraries Android Runtime think of Freetype, WebKit, SQLite (Android libraries & Dalvik VM) Linux Kernel HAL – Power Management – IPC – … Freitag, 15. Oktober 2010
  14. 14. Dalvik VM Größte Optimierung statischer Art: globaler Constant Pool für alle Klassen eines Pakets. Andere Opcodes (2 byte statt 1 byte) • Runtime for applications (1 VM per der InstallationByte Order, Bei optimiert, z.B. bei wird noch application!) Inline Functions, Static linking... • Heavily optimized for mobile devices • Custom executable format (.dex) • Based on Apache Harmony JVM implementation • Not able to run Java Bytecode, no Java VM Freitag, 15. Oktober 2010
  15. 15. Tools • Eclipse + Android Developer Tools + Android Debugging Bridge + Emulator or Device • everything but the device is 100% free • Code Generator: droidBreeder, only rudimentary • UI Tool: DroidDraw • MDD approach with Xtext, Acceleo, EMF Freitag, 15. Oktober 2010
  16. 16. - „Shortcomings?“ -„We call it personality!“ • No SOAP libraries included • No „properties“-file as in Java but similar mechanism using the „res“-folder • No native device/sd card encryption • Limitted device management api Freitag, 15. Oktober 2010
  17. 17. Terms you should know or have heard of Freitag, 15. Oktober 2010
  18. 18. Activity • Fundamental application building block • „One screen“ • Lifecycle methods • Create – resume – pause – destroy – … • The „V“ and the „C“ in MVC Freitag, 15. Oktober 2010
  19. 19. Intents • „Abstract Description of an operation to be performed“ • Android specific event mechanism • Late binding • Can be created and received at runtime • IPC Freitag, 15. Oktober 2010
  20. 20. Application Context • Runtime object provided by the system • Look up services • IPC • Anything outside your app is likely to use the context at some point Freitag, 15. Oktober 2010
  21. 21. Other terms & stuff • Services – background activities without UI • Content provider – shareable data stores • Broadcast receiver – listeners for global intents • Bundle - a bundle of „extra“ information • The Manifest file – sounds familiar, doesn‘t it? Freitag, 15. Oktober 2010
  22. 22. Development Walkthrough Ready, Set.. Freitag, 15. Oktober 2010
  23. 23. Development Walkthrough • What does the app do? • Create a project • The DDMS perspective • Project structure • Create a virtual device • With or without Google APIs? • Layout the 1st activity Freitag, 15. Oktober 2010
  24. 24. Development Walkthrough • Create the activity • AndroidManifest.xml • The Java fun begins! • actually writing the first activity • Persisting stuff with SQLite • Accessing lists with Adapters • HTTP-Calls • Adding a Menu Freitag, 15. Oktober 2010
  25. 25. Things to keep in mind • Have a good user experience! • Pay attention to the UI! • Think about performance! • Avoid object allocation (use static final attributes, avoid collections,...)! • Consider different target devices! • Pay more attention to the UI! Freitag, 15. Oktober 2010
  26. 26. The Android Market • Register as a developer for $29 using Google google checkout und paypal? Checkout and agree to the license • ~80.000 Apps (and growing) • Not available worldwide but increased availability • Significantly more free apps than paid ones (numbers vary, though) • Needs a google account AND „google checkout“ for paid apps • Alternative markets? Freitag, 15. Oktober 2010
  27. 27. Other interesting stuff • Google Developer Events (not only on Android) & Android Barcamps • It‘s hard to get info directly from Google (improvements planned) • User groups (www.gtugs.org) & Android Meet-ups • Fragmentation Issues?! • Patent problem (Oracle‘s lawsuit)?! • Piracy problems?! Freitag, 15. Oktober 2010
  28. 28. Some advertiseing There‘s the 1st event using „our new name“ Stuttgart GTUG 2.11.2010, 18h, Android Tech Talks Location: DHBW Stuttgart, Stuttgart-Mitte Website: www.gtugna.gtugs.org Freitag, 15. Oktober 2010
  29. 29. Thanks! and now: Q&A! Freitag, 15. Oktober 2010
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×