praktikum entwicklung von mediensystemen android
play

Praktikum Entwicklung von Mediensystemen (Android) Sommersemester - PowerPoint PPT Presentation

Praktikum Entwicklung von Mediensystemen (Android) Sommersemester 2014 Simon Eumes, Dr. Alexander De Luca Today Recap Android 102 Hands-On Assignment 02 April 24, 2014 PEM (Android) - SS 2014


  1. Praktikum Entwicklung von Mediensystemen (Android) Sommersemester 2014 Simon Eumes, Dr. Alexander De Luca

  2. Today • Recap • Android 102 • Hands-On • Assignment 02 April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 2 ¡

  3. RECAP April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 3 ¡

  4. ANDROID 102 April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 4 ¡

  5. Android 102 Fragments • Similar lifecycle compared to an Activity • Used to reduce overhead and adapt to different layouts more quickly • Encapsulate responsibility • Make sure to use interfaces for communication between Fragments/Activities April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 5 ¡

  6. Android 102 Fragments http://developer.android.com/guide/components/fragments.html April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 6 ¡

  7. Android 102 Services • Perform long running tasks • Have no UI and initially do not run in own thread • Multiple clients can bind to them and exchange data • Can be use to share information between multiple applications (IPC) April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 7 ¡

  8. Android 102 Services http://developer.android.com/guide/components/services.html April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 8 ¡

  9. Android 102 Toasts • Toast.makeText(context, text, duration).show(); http://developer.android.com/guide/topics/ui/notifiers/toasts.html April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 9 ¡

  10. Android 102 Notifications • Global notifications • Link to Activity and display first information • Can be modified/ dismissed after posting and made sticky • Keep the design guidelines in mind http://developer.android.com/guide/topics/ui/notifiers/notifications.html April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 10 ¡

  11. Android 102 Animations & Graphics • Property animation – Animate properties of any object • View animation – Stack multiple animations together and animate a View • Drawable animation – Create an “animated gif” out of stacked images • Canvas drawing – Manual control, explicit draw commands • OpenGL http://developer.android.com/guide/topics/graphics/index.html April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 11 ¡

  12. Android 102 Sensors • Around 15 different sensors currently supported • Differentiation between three main classes – Motion, Position, Environment • Unified interface for access – getSystemService(SENSOR_SERVICE); – getDefaultSensor(Sensor. TYPE_ACCELEROMETER ); • Register listener for updates (including frequency) – SensorEventListener, SensorEvent – Make sure to unregister (e.g. on onPause) April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 12 ¡

  13. Android 102 Broadcasts & BroadcastReceivers • Sends messages within your application or system wide – Intent.ACTION_DIAL – Intent.ACTION_SENDTO • React to events triggered by the system – Intent.ACTION_BOOT_COMPLETED – Intent.ACTION_POWER_CONNECTED • Build you own, either exposing data or reacting to events • Use Intent to share information April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 13 ¡

  14. HANDS-ON April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 14 ¡

  15. ADDITIONAL INFORMATION April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 15 ¡

  16. Assignment 02 • Individual assignment • Build up on your previous work • Fragments, Notifications and screen layouts • Due in 2 weeks (08.05.) • Submission via Uniworx April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 16 ¡

  17. Next Lecture • Next lecture in 2 weeks (08.05.), 14.00h • Semester project introduction • Teaming up April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 17 ¡

  18. Questions • Open Q&A April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 18 ¡

  19. Resources • Android Developers – http://developer.android.com/design – http://developer.android.com/training – http://developer.android.com/guide • Google IO Session Recordings – https://developers.google.com/events/io/2012 – https://developers.google.com/events/io/2013 • Google IO Schedule App – https://code.google.com/p/iosched April ¡24, ¡2014 ¡ PEM ¡(Android) ¡-­‑ ¡SS ¡2014 ¡ ¡ 19 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend