Android presentation 2011

  • 1,931 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,931
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
38
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Android by Bram VandeputteFriday 14 October 2011
  • 2. Inleiding • Wat ? • Verzameling van software-componenten • Voor mobiele toestellen • Open Source • Bevat : • Besturingssysteem • Middleware • Standaard applicaties (o.a. Market)Friday 14 October 2011
  • 3. Inleiding • Ontwikkelen • Java • Android SDK • emulator • tools • API’s • Externe API’s : Google API • Eclipse plug-inFriday 14 October 2011
  • 4. Features • Application framework : enables reuse and replacement of components • Dalvik virtual machine : optimized for mobile devices • Integrated browser based on the open source WebKit engine • Optimized graphics : custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) • SQLite for structured data storage • Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) • hardware dependent : GSM Telephony, Bluetooth, EDGE, 3G, WiFi, Camera, GPS, compass, and accelerometer.Friday 14 October 2011
  • 5. ArchitectuurFriday 14 October 2011
  • 6. Basics : Componenten • App : no single entry point (main) • Activity : scherm • bestaat uit Views • reageert op Events • Service : geen UI (bvb. music playback) • Broadcast Receiver : ontvang & reageer • Content provider : data delenFriday 14 October 2011
  • 7. Basics • Componenten activeren : • Intent : asynchrone berichten • Om Activity, Service of Broadcast Receiver aan te spreken • Intent filters • Content Resolver • Om Content Provider aan te sprekenFriday 14 October 2011
  • 8. Basics (bis) • AndroidManifest : omschrijving applicatie • Layout • ResourcesFriday 14 October 2011
  • 9. Basics (bis) • AndroidManifest : omschrijving applicatie • Layout • ResourcesFriday 14 October 2011
  • 10. Basics (bis) • AndroidManifest : omschrijving applicatie • Layout • ResourcesFriday 14 October 2011
  • 11. Basics (bis) • AndroidManifest : omschrijving applicatie • Layout • ResourcesFriday 14 October 2011
  • 12. Basics (bis) • AndroidManifest : omschrijving applicatie • Layout • ResourcesFriday 14 October 2011
  • 13. Basics (bis) • AndroidManifest : omschrijving applicatie • Layout • ResourcesFriday 14 October 2011
  • 14. Basics (bis) • AndroidManifest : omschrijving applicatie • Layout • ResourcesFriday 14 October 2011
  • 15. Component LifecyclesFriday 14 October 2011
  • 16. ActivityFriday 14 October 2011
  • 17. ServiceFriday 14 October 2011
  • 18. Getting Started • Get : • android-sdk-<your platform> • Add Android 2.3 platform • eclipse + ADT plugin • Links : http://bit.ly/mume-androidFriday 14 October 2011
  • 19. Hello AndroidFriday 14 October 2011
  • 20. Hello Android • Init : • Run Android Manager (run tools/android) • maak een AVD • emulator : • export PATH=${PATH}:/MY/PATH/TO/THE/android-sdk/tools/ • run emulator • app : • http://developer.android.com/resources/tutorials/hello-world.htmlFriday 14 October 2011
  • 21. Hello AndroidFriday 14 October 2011
  • 22. Hello Android • tools : • debugging (Eclipse) • adb (under platform-tools) • set PATH • adb shell • sqlite3 data • .dump • LogCatFriday 14 October 2011
  • 23. Extra • http://developer.android.com/guide • API demos • http://www.anddev.org • sdcard • versions : 2.3 vs 3.0 vs 4.0Friday 14 October 2011
  • 24. Friday 14 October 2011
  • 25. Friday 14 October 2011
  • 26. Friday 14 October 2011
  • 27. Now let’s get codingFriday 14 October 2011
  • 28. Notepad tutorial • http://bit.ly/android-tutorial • Exercise 1 • Exercise 2 • optional : • Exercise 3 • Extra credit (debugging) • uitbreidingFriday 14 October 2011
  • 29. MyGpsApp • gps mock dataFriday 14 October 2011
  • 30. MyGpsApp • opbouw • create textview • LocationManager & LocationListener • permissions : AndroidManifest.xml • update textviewFriday 14 October 2011
  • 31. MyGpsApp • Add Google Maps • http://developer.android.com/guide/tutorials/viewsFriday 14 October 2011
  • 32. Maps API Key • http://www.javacodegeeks.com/ 2011/02/android-google-maps- tutorial.html • http://code.google.com/android/maps- api-signup.htmlFriday 14 October 2011