SlideShare a Scribd company logo
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
                      • 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
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
Agenda

                      • Mobile operating systems - overview
                      • Android fundamentals
                      • The walkthrough
                      • Android market
                      • Other interesting stuff

Freitag, 15. Oktober 2010
Mobile Operating
                               Systems
                               Overview & Comparison




Freitag, 15. Oktober 2010
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
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
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
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
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
Android Fundamentals
                            OS Structure – Concepts




Freitag, 15. Oktober 2010
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
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
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
- „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
Terms you should know
                            or have heard of




Freitag, 15. Oktober 2010
Activity

                      • Fundamental application building block
                      • „One screen“
                      • Lifecycle methods
                       • Create – resume – pause – destroy – …
                      • The „V“ and the „C“ in MVC

Freitag, 15. Oktober 2010
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
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
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
Development Walkthrough
                            Ready, Set..




Freitag, 15. Oktober 2010
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
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
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
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
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
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
Thanks!
                            and now: Q&A!

Freitag, 15. Oktober 2010

More Related Content

Similar to Android Workshop at @majug by @derwildemomo and @elektrojunge

Multi Handset Development - ETE 2010
Multi Handset Development - ETE 2010Multi Handset Development - ETE 2010
Multi Handset Development - ETE 2010Kevin Griffin
 
"iPhone vs Andriod," Anthony Hand
"iPhone vs Andriod," Anthony Hand"iPhone vs Andriod," Anthony Hand
"iPhone vs Andriod," Anthony Hand
rayvillares
 
Android Beyond The Phone
Android Beyond The PhoneAndroid Beyond The Phone
Android Beyond The Phone
Marko Gargenta
 
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
Simon Bates
 
Mobile News Round Up
Mobile News Round UpMobile News Round Up
Mobile News Round Up
Jeff Bollinger
 
Mobile - Small Screen Big Bet !
Mobile - Small Screen Big Bet !Mobile - Small Screen Big Bet !
Mobile - Small Screen Big Bet !
Satyajeet Singh
 
Mobile Computing Introduction
Mobile Computing IntroductionMobile Computing Introduction
Mobile Computing Introduction
Thenraja Vettivelraj
 
Internet trends and ICT knowledge necessary in the next years - 2013 ed.
Internet trends and ICT knowledge necessary in the next years - 2013 ed.Internet trends and ICT knowledge necessary in the next years - 2013 ed.
Internet trends and ICT knowledge necessary in the next years - 2013 ed.
Antonio Ciccarelli, PMP
 
Android : Evolution or Revolution
Android : Evolution or RevolutionAndroid : Evolution or Revolution
Android : Evolution or Revolution
Sanjiv Malik
 
Mobile application development strategies
Mobile application development strategiesMobile application development strategies
Mobile application development strategiesInterop
 
Taking Your Website Mobile
Taking Your Website MobileTaking Your Website Mobile
Taking Your Website Mobile
nijsitecore
 
Cross Platform Mobile Development
Cross Platform Mobile DevelopmentCross Platform Mobile Development
Cross Platform Mobile Development
Intergen
 
developementofmobileapplication-160412025313 (1).pptx
developementofmobileapplication-160412025313 (1).pptxdevelopementofmobileapplication-160412025313 (1).pptx
developementofmobileapplication-160412025313 (1).pptx
Poooi2
 
Part 1 robot in the making
Part 1 robot in the makingPart 1 robot in the making
Part 1 robot in the making
Michael Angelo Rivera
 
CommNexus San Diego Presentation
CommNexus San Diego PresentationCommNexus San Diego Presentation
CommNexus San Diego Presentation
Jeff Haynie
 
Nokia's start to end
Nokia's start to endNokia's start to end
Nokia's start to end
Vinu Praveenz
 
History of Mobile, Mobile application development and secret to be a great de...
History of Mobile, Mobile application development and secret to be a great de...History of Mobile, Mobile application development and secret to be a great de...
History of Mobile, Mobile application development and secret to be a great de...
Md Razon Hossain
 

Similar to Android Workshop at @majug by @derwildemomo and @elektrojunge (20)

Multi Handset Development - ETE 2010
Multi Handset Development - ETE 2010Multi Handset Development - ETE 2010
Multi Handset Development - ETE 2010
 
"iPhone vs Andriod," Anthony Hand
"iPhone vs Andriod," Anthony Hand"iPhone vs Andriod," Anthony Hand
"iPhone vs Andriod," Anthony Hand
 
Mobile input lukew
Mobile input lukewMobile input lukew
Mobile input lukew
 
Android Beyond The Phone
Android Beyond The PhoneAndroid Beyond The Phone
Android Beyond The Phone
 
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
Simon Bates, Manifesto Digital - Mobile Application Development: Past, Presen...
 
Mobile News Round Up
Mobile News Round UpMobile News Round Up
Mobile News Round Up
 
Mobile - Small Screen Big Bet !
Mobile - Small Screen Big Bet !Mobile - Small Screen Big Bet !
Mobile - Small Screen Big Bet !
 
Mobile Computing Introduction
Mobile Computing IntroductionMobile Computing Introduction
Mobile Computing Introduction
 
Internet trends and ICT knowledge necessary in the next years - 2013 ed.
Internet trends and ICT knowledge necessary in the next years - 2013 ed.Internet trends and ICT knowledge necessary in the next years - 2013 ed.
Internet trends and ICT knowledge necessary in the next years - 2013 ed.
 
Android : Evolution or Revolution
Android : Evolution or RevolutionAndroid : Evolution or Revolution
Android : Evolution or Revolution
 
Mobile application development strategies
Mobile application development strategiesMobile application development strategies
Mobile application development strategies
 
Taking Your Website Mobile
Taking Your Website MobileTaking Your Website Mobile
Taking Your Website Mobile
 
Android - to be or not to be?
Android - to be or not to be?Android - to be or not to be?
Android - to be or not to be?
 
Cross Platform Mobile Development
Cross Platform Mobile DevelopmentCross Platform Mobile Development
Cross Platform Mobile Development
 
developementofmobileapplication-160412025313 (1).pptx
developementofmobileapplication-160412025313 (1).pptxdevelopementofmobileapplication-160412025313 (1).pptx
developementofmobileapplication-160412025313 (1).pptx
 
Patrick hochstenbach mobilize u gent
Patrick hochstenbach mobilize u gentPatrick hochstenbach mobilize u gent
Patrick hochstenbach mobilize u gent
 
Part 1 robot in the making
Part 1 robot in the makingPart 1 robot in the making
Part 1 robot in the making
 
CommNexus San Diego Presentation
CommNexus San Diego PresentationCommNexus San Diego Presentation
CommNexus San Diego Presentation
 
Nokia's start to end
Nokia's start to endNokia's start to end
Nokia's start to end
 
History of Mobile, Mobile application development and secret to be a great de...
History of Mobile, Mobile application development and secret to be a great de...History of Mobile, Mobile application development and secret to be a great de...
History of Mobile, Mobile application development and secret to be a great de...
 

More from Benny Reimold

Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.
Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.
Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.
Benny Reimold
 
Typographie to go! @ Mobile Tech Con 2014, Berlin
Typographie to go! @ Mobile Tech Con 2014, BerlinTypographie to go! @ Mobile Tech Con 2014, Berlin
Typographie to go! @ Mobile Tech Con 2014, Berlin
Benny Reimold
 
Redacted – Living in the mobile space
Redacted – Living in the mobile spaceRedacted – Living in the mobile space
Redacted – Living in the mobile space
Benny Reimold
 
Tragbares Designsprech
Tragbares DesignsprechTragbares Designsprech
Tragbares Designsprech
Benny Reimold
 
$Foo design basics for ios developers
$Foo design basics for ios developers$Foo design basics for ios developers
$Foo design basics for ios developers
Benny Reimold
 
Alles wird wie neu sein!
Alles wird wie neu sein!Alles wird wie neu sein!
Alles wird wie neu sein!
Benny Reimold
 
Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...
Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...
Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...
Benny Reimold
 
Android tech talks - Moderation by Benny
Android tech talks - Moderation by BennyAndroid tech talks - Moderation by Benny
Android tech talks - Moderation by BennyBenny Reimold
 
Windows phone 7 talk
Windows phone 7 talkWindows phone 7 talk
Windows phone 7 talkBenny Reimold
 

More from Benny Reimold (9)

Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.
Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.
Quo Vadis Argumentum Mobile? Morgen ist heute schon gestern.
 
Typographie to go! @ Mobile Tech Con 2014, Berlin
Typographie to go! @ Mobile Tech Con 2014, BerlinTypographie to go! @ Mobile Tech Con 2014, Berlin
Typographie to go! @ Mobile Tech Con 2014, Berlin
 
Redacted – Living in the mobile space
Redacted – Living in the mobile spaceRedacted – Living in the mobile space
Redacted – Living in the mobile space
 
Tragbares Designsprech
Tragbares DesignsprechTragbares Designsprech
Tragbares Designsprech
 
$Foo design basics for ios developers
$Foo design basics for ios developers$Foo design basics for ios developers
$Foo design basics for ios developers
 
Alles wird wie neu sein!
Alles wird wie neu sein!Alles wird wie neu sein!
Alles wird wie neu sein!
 
Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...
Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...
Why iOS Dev, Android Dev, WP7 Dev and Web App Dev all suck and why we STILL d...
 
Android tech talks - Moderation by Benny
Android tech talks - Moderation by BennyAndroid tech talks - Moderation by Benny
Android tech talks - Moderation by Benny
 
Windows phone 7 talk
Windows phone 7 talkWindows phone 7 talk
Windows phone 7 talk
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 

Android Workshop at @majug by @derwildemomo and @elektrojunge

  • 1. Android Overview – Structure – Development Freitag, 15. Oktober 2010
  • 2. English slides Still hoping for an english attendend, though. Freitag, 15. Oktober 2010
  • 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. 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. Agenda • Mobile operating systems - overview • Android fundamentals • The walkthrough • Android market • Other interesting stuff Freitag, 15. Oktober 2010
  • 6. Mobile Operating Systems Overview & Comparison Freitag, 15. Oktober 2010
  • 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. 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. 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. 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. 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. Android Fundamentals OS Structure – Concepts Freitag, 15. Oktober 2010
  • 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. 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. 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. - „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. Terms you should know or have heard of Freitag, 15. Oktober 2010
  • 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. 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. 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. 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. Development Walkthrough Ready, Set.. Freitag, 15. Oktober 2010
  • 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. 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. 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. 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. 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. 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. Thanks! and now: Q&A! Freitag, 15. Oktober 2010