Android Overview (Karlsruhe VKSI)

1,745 views

Published on

Android Overview.

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

No Downloads
Views
Total views
1,745
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
30
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Android Overview (Karlsruhe VKSI)

  1. 1. Android Introduction<br />Lars Vogel<br />Twitter: @vogella<br />Google+: http://gplus.to/vogella<br />
  2. 2. What is Android?<br />- Software stack based on Linux with a Java programming interface.<br />- Open Source <br />- Developed officially by the Open Handset Alliance lead by Google<br />
  3. 3.
  4. 4. Android is market-leader in the Smartphone segment<br />More then 550 000 new phone activations per day <br />(from 14 Juli 2011)<br />
  5. 5. On Android you develop in Java<br />Really?<br />
  6. 6. Android Programming<br />Application runs on the Dalvik virtual machine <br />Tool dx converts Java Bytecode into Dalvik Executable Code (.dex)<br />You use the Java programming language but Android does not run Java Bytecode<br />
  7. 7. Overview of the API Capabilities<br />Rich UI components<br />Threads and Background Processing<br />Full network stack (Http, JSON)<br />Database and File System access<br />Access to the hardware (GPS, Camera, Phone)<br />and much more............ <br />
  8. 8. Developer Toolchain<br />
  9. 9. Android Development Tools (ADT) for Eclipse<br />Eclipse based tooling<br />Windows<br />Linux (i386)<br />Mac OS (Intel)<br />
  10. 10. Emulator<br />QEMU-based ARM emulator runs same image as a device<br />Use same toolchain to work with device or emulatorInital startup is slooooowwwwww.....<br />
  11. 11. Android programming <br />constructs <br />
  12. 12. Main Android programming constructs<br />Activity<br />Views<br />Intents<br />Broadcast Receiver<br />Services<br />ContentProvider<br />
  13. 13. Activity<br />An activity is a single, focused thing that the user can do.<br />Extends “android.app.Activity”<br />Layout of Activity defines UI elements and their arrangements <br />
  14. 14. I had only the best intents....<br />
  15. 15. In Android there is no such thing as a monolistic application, everything is a connection of components.<br />
  16. 16. Intents<br />new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.vogella.de"));<br />new Intent(Intent.ACTION_CALL, Uri.parse("tel:(+49)12345789"));<br />New Intent(this, MyClass.class);<br />
  17. 17. Deployment <br />Also known as: I really hope that Steve likes my app....<br />
  18. 18. Deployment<br />USB Cable<br />Market (Google, Amazon)<br />Direct <br />
  19. 19. There is more....<br />
  20. 20. I can talk and hear<br />Internet (java.net, Apache HttpClient, JSON...)<br />Bluetooth<br />Email<br />SMS<br />VoIP (SIP (Session Initiation Protocol))<br />
  21. 21. I have feelings<br />Camera API<br />Motion Detection<br />Location API (GIS)<br />Heat Sensor<br />Accelerator<br />
  22. 22. Other Capabilities<br />Good security system<br />Push to device<br />Storage: File System / Preferences SQLiteDatabase<br />Interactive Widgets on the homescreen<br />Live Wallpapers (as background)<br />Animations and Styling<br />Simple List handling<br />(Multi-) Touch<br />NFS<br />Canvas / OpenGL ES (Game programming....)<br />
  23. 23. Performance?<br />
  24. 24. Be fast!<br />Avoid ApplicationNotResponding Error<br />Threads not allowed to modify the UI directly<br />Use handler or AsyncTask to update the UI after Thread is done<br />
  25. 25. Summary<br />Android powerful and well-designed development platform<br />Marketleader for Smartphones<br />Power to the developer<br />
  26. 26. Android: Where to go from here:<br />Google for „Android Development Tutorials“<br />Android Training: http://www.vogella.de/training/android.html<br />
  27. 27.
  28. 28. Thank you<br />For further questions:<br />Lars.Vogel@gmail.com<br />http://www.vogella.de<br />Twitter http://www.twitter.com/vogella<br />Google+ http://gplus.to/vogella<br />
  29. 29. Picture Credit<br /> All pictures are from http://www.sxc.hu/ to get them add the number to http://www.sxc.hu/photo/<br />Agenda 1089869<br />Dalvik 1269657<br />Software Layer / Tomatos 832159<br />616474<br />Thinking guy 324541<br />Smiling Boy 812138<br />Toolchain 1197009<br />Stopwatch http://www.sxc.hu/photo/634598<br />Timer / Watches 1062014<br />Next guy 986700<br />Sad Lady 232738<br />Funny guy 1173019<br />Waiter / Services http://www.sxc.hu/photo/157966<br />Security 695054<br />There is more 702367<br /><ul><li>Performance rabbits 786444
  30. 30. Performance snail 1181451
  31. 31. Performance Running man 377100
  32. 32. Hang-man 620961
  33. 33. Summary http://www.sxc.hu/photo/1184807
  34. 34. Question http://www.sxc.hu/photo/418215
  35. 35. Reading material http://www.sxc.hu/photo/406547
  36. 36. Thank you http://www.sxc.hu/photo/986313</li></li></ul><li>License & Acknowledgements<br />This work is licensed under the Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Germany License<br />See http://creativecommons.org/licenses/by-nc-nd/3.0/de/deed.en_US<br />

×