0
What’s in an Android?

                                                           Abdo El Ali1
                           ...
Outline

1.    What is Android?



2.    Android Basics



3.    Tutorial of a Toy Application: Text, Buttons, &
      Act...
What is Android?
      A first joined project of the Open Handset Alliance (OHA)

      A complete & modern embedded ope...
Android Features
         Software Features
          Integrated browser based on the open source WebKit engine
       ...
Android Architecture




5                      Abdo El Ali – Android Workshop
An Android Application can consist of…
         Activities
           An application that has a visible UI is implemente...
Android Basics: Main components of Interest
         AndroidManifest.xml:
           the control file-tells the system w...
Android Development Tools
    Android Emulator: A virtual mobile device that runs
     on our computer; used to design, d...
Eclipse Environment: Overview




9
Eclipse Environment: Directory Structure




10                               Abdo El Ali – Android Basics
Eclipse Environment: Java Code




11                               Abdo El Ali – Android Workshop
Eclipse Environment: Screen Layout




12                            Abdo El Ali – Android Workshop
Eclipse Environment: XML Layout




13                           Abdo El Ali – Android Workshop
Eclipse Environment: Android Manifest File




14                             Abdo El Ali – Android Workshop
Android Example: Text, Buttons, & Activities

    To learn about the interaction between your Layout XML file,
     your ...
Our Toy Application




16                    Abdo El Ali – Android Tutorial
Our Toy Application




17                    Abdo El Ali – Android Tutorial
1. Declare Elements in Your Layout file




18                                Abdo El Ali – Android Tutorial
1. Declare Elements in Your Layout file (Contd.)




19                                   Abdo El Ali – Android Tutorial
2.1. Java Code: Declaring Variables, Finding Views,
Setting Listeners




 20                                 Abdo El Ali ...
2.2. Java Code: Declaring Methods for Event
Handling (Contd.)




21                                 Abdo El Ali – Android...
3. Manifest: Declare New Activity & Intent




22                               Abdo El Ali – Android Tutorial
3.1. Activity: Create a New Activity

                           ↵




                       ↵

23                       ...
3.2. Activity: Java Code




24                         Abdo El Ali – Android Tutorial
3.3. Activity: Layout




25                      Abdo El Ali – Android Tutorial
Good luck!




26                Abdo El Ali – What’s in an Android?
References

     Deep Inside Android… by Gilles Printemps

     Android: An Open-handset Alliance Project by Yedukk

  ...
Upcoming SlideShare
Loading in...5
×

What's in an Android?

3,597

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,597
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
196
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "What's in an Android?"

  1. 1. What’s in an Android? Abdo El Ali1 Victor de Boer2 Andi Winterboer3 1 ILPS (Information and Language Processing Systems) Group 2 Theoretical Computer Science Group 3 ISA (Intelligent Autonomous Systems) Group
  2. 2. Outline 1.  What is Android? 2.  Android Basics 3.  Tutorial of a Toy Application: Text, Buttons, & Activities 2 Abdo El Ali – What’s in an Android?
  3. 3. What is Android?   A first joined project of the Open Handset Alliance (OHA)   A complete & modern embedded operating system   A cutting-edge mobile user experience   A world-class software stack for building applications   An open platform for developers, users & industry   Full phone software stack including applications   Android is open   Android is free   Community support   100% Java Phone 3 Abdo El Ali – What is Android?
  4. 4. Android Features   Software Features   Integrated browser based on the open source WebKit engine   SQLite for relational data storage   Media support for common audio, video, and still image formats(MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)   Dalvik Virtual Machine optimized for mobile devices   Hardware Features   Cellular networking : GSM, EDGE, 3G (hardware dependent)   LAN : Bluetooth, and Wi-Fi (hardware dependent)   Graphics Hardware Acceleration   Camera, GPS and Compass (hardware dependent)   Touch screen and accelerometer for motion sensing 4 Abdo El Ali – What is Android?
  5. 5. Android Architecture 5 Abdo El Ali – Android Workshop
  6. 6. An Android Application can consist of…   Activities   An application that has a visible UI is implemented with an activity. When a user selects an application from the home screen or application launcher, an activity is started.   Services   A service should be used for any application that needs to persist for a long time, such as a network monitor or update-checking application.   Content providers   You can think of content providers as a database server. A content provider's job is to manage access to persisted data, such as a SQLite database.   Broadcast receivers   An Android application may be launched to process an element of data or respond to an event, such as the receipt of a text message (notification). 6 Abdo El Ali – What is Android?
  7. 7. Android Basics: Main components of Interest   AndroidManifest.xml:   the control file-tells the system what to do with the top-level components   Activity:   an object that has a life cycle and is a chunk of code that does some work. Corresponds to a single screen.   View:   an object that knows how to draw itself to the screen   Intent:   a simple message object that represents an "intention" to do something. Consider an intent received when an event is triggered (e.g., a phone ring) 7 Abdo El Ali – Android Basics
  8. 8. Android Development Tools   Android Emulator: A virtual mobile device that runs on our computer; used to design, debug, and test our applications in an actual Android run-time environment   Android Development Tools Plugin: For the Eclipse IDE; adds extensions to the Eclipse integrated environment   Dalvik Debug Monitor Service (DDMS): Integrated with Dalvik -- this tool lets us manage processes on an emulator and assists in debugging 8 Abdo El Ali – Android Basics
  9. 9. Eclipse Environment: Overview 9
  10. 10. Eclipse Environment: Directory Structure 10 Abdo El Ali – Android Basics
  11. 11. Eclipse Environment: Java Code 11 Abdo El Ali – Android Workshop
  12. 12. Eclipse Environment: Screen Layout 12 Abdo El Ali – Android Workshop
  13. 13. Eclipse Environment: XML Layout 13 Abdo El Ali – Android Workshop
  14. 14. Eclipse Environment: Android Manifest File 14 Abdo El Ali – Android Workshop
  15. 15. Android Example: Text, Buttons, & Activities   To learn about the interaction between your Layout XML file, your Java code, and your Manifest file More precisely, you will learn: 1)  …how to declare an EditText box in your layout where the text can be set from your Java code 2)  …how to declare buttons and make them responsive to events (e.g., clicks or touch) 3)  …how to launch a new activity from the current activity 15 Abdo El Ali – Android Tutorial
  16. 16. Our Toy Application 16 Abdo El Ali – Android Tutorial
  17. 17. Our Toy Application 17 Abdo El Ali – Android Tutorial
  18. 18. 1. Declare Elements in Your Layout file 18 Abdo El Ali – Android Tutorial
  19. 19. 1. Declare Elements in Your Layout file (Contd.) 19 Abdo El Ali – Android Tutorial
  20. 20. 2.1. Java Code: Declaring Variables, Finding Views, Setting Listeners 20 Abdo El Ali – Android Workshop
  21. 21. 2.2. Java Code: Declaring Methods for Event Handling (Contd.) 21 Abdo El Ali – Android Workshop
  22. 22. 3. Manifest: Declare New Activity & Intent 22 Abdo El Ali – Android Tutorial
  23. 23. 3.1. Activity: Create a New Activity ↵ ↵ 23 Abdo El Ali – Android Tutorial
  24. 24. 3.2. Activity: Java Code 24 Abdo El Ali – Android Tutorial
  25. 25. 3.3. Activity: Layout 25 Abdo El Ali – Android Tutorial
  26. 26. Good luck! 26 Abdo El Ali – What’s in an Android?
  27. 27. References   Deep Inside Android… by Gilles Printemps   Android: An Open-handset Alliance Project by Yedukk   Introduction to Android Development by Frank Ableson   Android Developer Site 27 Abdo El Ali – Android Workshop
  1. A particular slide catching your eye?

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

×