Sogeti - Android tech track presentation - 24 february 2011

1,772 views

Published on

Presentation of the Android Tech Track by Sogeti.

Presentation by:

* Ben Stroobants
* Kenneth Van Rumste
* Mark Fonteyne
* Mikhail Panshenskov
* Alexis Mathieux
* Geoffroy Mispelaere
* Tom Pluym

Published in: Technology
  • Be the first to comment

Sogeti - Android tech track presentation - 24 february 2011

  1. 1. Android Tech Track Mobile App development 24 February 2011 Sogeti, Evere <ul><li>Ben Stroobants, Kenneth Van Rumste, Alexis Mathieux, Geoffroy Mispelaere, Tom Pluym </li></ul>
  2. 2. Agenda <ul><li>Introduction </li></ul><ul><li>Demonstration </li></ul><ul><li>Set up </li></ul><ul><li>Track Actions </li></ul><ul><li>Conclusion </li></ul>
  3. 3. Introduction <ul><li>Smartphones & Mobile Apps </li></ul><ul><li>Android </li></ul><ul><li>Case: Antalis </li></ul>
  4. 4. Introduction: Smartphones & Mobile Apps
  5. 5. Mobile Apps <ul><li>Communication is already multi/cross-channel </li></ul><ul><li>New channel </li></ul>
  6. 6. Mobile Apps vs Mobile Website <ul><li>Mobile Website </li></ul><ul><ul><li>One single design for all devices </li></ul></ul><ul><ul><li>No obligation to download new versions </li></ul></ul><ul><ul><li>Save on the cost of development </li></ul></ul><ul><ul><li>Independence with regard to app stores and operators: not subject to market place checks </li></ul></ul><ul><ul><li>No commission to pay to an app store </li></ul></ul><ul><ul><li>Instantly available to the public (automatic indexation in search engines). </li></ul></ul>
  7. 7. Mobile Apps vs Mobile Website <ul><li>Mobile App </li></ul><ul><ul><li>Format perfectly suited to the device </li></ul></ul><ul><ul><li>One-click access (no searching as on a mobile site) </li></ul></ul><ul><ul><li>Can work offline </li></ul></ul><ul><ul><li>Look and feel is more accessible to the general public </li></ul></ul><ul><ul><li>Can offer more advanced functions: integration of device features like geolocation, camera, accelerometer </li></ul></ul><ul><ul><li>Modern image </li></ul></ul><ul><ul><li>Direct shortcut to the ‘brand’: users tend to spend more time on an application than to spend on a website. Also, a person downloading an application reflects already trust and interest in the ‘brand’. </li></ul></ul>
  8. 8. Mobile Apps vs Mobile website <ul><li>Consultant’s answer: ‘It depends’ </li></ul><ul><li>Important to ensure </li></ul><ul><ul><li>consistent image </li></ul></ul><ul><ul><li>consistent cross-channel experience. </li></ul></ul>
  9. 9. Android <ul><li>What is Android? </li></ul><ul><li>The Open Handset Alliance </li></ul><ul><li>Recent version history </li></ul><ul><li>Features </li></ul><ul><li>Architecture </li></ul><ul><li>Apps on Android </li></ul><ul><li>Global market importance </li></ul>Overview
  10. 10. Android <ul><li>A software platform and operating system for mobile devices </li></ul><ul><li>Initially developed by Android, inc. (bought by Google in 2005) </li></ul><ul><li>Since 2007, result of collaboration by Open Handset Alliance </li></ul><ul><li>Open platform, released under the Apache license </li></ul>What is Android?
  11. 11. Android The Open Handset Alliance (OHA)
  12. 12. Android <ul><li>Established on November 5, 2007 </li></ul><ul><li>Led by Google. Initially 34 enterprises joined (number still growing) </li></ul><ul><li>Enterprises include major players from different sectors: </li></ul><ul><ul><li>Mobile operators: T-Mobile, Vodafone,… </li></ul></ul><ul><ul><li>Software companies: Google, eBay, Nuance,… </li></ul></ul><ul><ul><li>Commercialization companies: Accenture,… </li></ul></ul><ul><ul><li>Semiconductor companies: Intel, Nvidia,… </li></ul></ul><ul><ul><li>Handset manufacturers: HTC, Motorola,… </li></ul></ul><ul><li>Goal: Develop technologies that will significantly lower the cost of developing and distributing mobile devices and services </li></ul>The Open Handset Alliance (OHA)
  13. 13. Android <ul><li>Android 2.1 - Eclair: Released January 2010 </li></ul><ul><li>Android 2.2 – Froyo: Released May 2010 </li></ul><ul><ul><li>General OS, speed, memory improvements </li></ul></ul><ul><ul><li>Support for Adobe Flash 10.1 </li></ul></ul><ul><li>Android 2.3 Gingerbread: Released December 2010 </li></ul><ul><ul><li>Improved hardware support and power management </li></ul></ul><ul><li>Android 3.0 Honeycomb: Preview release January 2011 </li></ul><ul><ul><li>Support for multicore processors </li></ul></ul><ul><ul><li>For now: only tablet-support </li></ul></ul><ul><ul><li>Improved user interface </li></ul></ul><ul><ul><li>Today? Launch of Motorola Xoom, first tablet with Android 3.0 </li></ul></ul>Recent version history
  14. 14. Android Recent version history- market share
  15. 15. Android <ul><li>Integrated browser based on open-source WebKit engine, coupled with Chrome JS engine v8. </li></ul><ul><li>SQLite: RDBMS </li></ul><ul><li>Wide range of media support </li></ul><ul><li>Multitasking possible </li></ul><ul><li>Dalvik Virtual Machine: optimized for mobile devices </li></ul>Software features
  16. 16. Android <ul><li>connectivity technologies: GSM/EDGE, IDEN, CDMA, EV-DO, UMTS, Bluetooth, Wi-Fi, LTE, and WiMAX. </li></ul><ul><li>Wide range of hardware support: </li></ul><ul><ul><li>Touchscreen (multitouch) </li></ul></ul><ul><ul><li>Cameras </li></ul></ul><ul><ul><li>GPS </li></ul></ul><ul><ul><li>Accelerometers </li></ul></ul><ul><ul><li>Gyroscopes </li></ul></ul><ul><ul><li>Proximity and pressure sensors </li></ul></ul><ul><li>Accelerated 3D graphics </li></ul>Hardware features
  17. 17. Android Architecture
  18. 18. Android <ul><li>Android SDK or native code </li></ul><ul><li>Android Market (Google’s appStore) </li></ul><ul><ul><li>Made available in October 2008 </li></ul></ul><ul><ul><li>Support for paid applications since February 2009 </li></ul></ul><ul><ul><li>Since december 2010: +200,000 apps available </li></ul></ul><ul><ul><li>Est. 2.5 billion downloads so far </li></ul></ul><ul><ul><li>Not the only place where you can find apps! </li></ul></ul><ul><li>Alternative markets: Andspot, Handango,… </li></ul><ul><li>Install the apps yourself by use of the APK-file (Android package) </li></ul>Apps on android
  19. 19. Android <ul><li>300,000 android-based devices are activated each day </li></ul><ul><li>Best-selling mobile platform at this moment </li></ul><ul><li>On daily-use basis, there’s still heavy competition from iOS, Symbian and Blackberry, but Android’s usage is rising rapidly </li></ul>Global market importance
  20. 20. Android Global market importance
  21. 21. Case Antalis <ul><li>Long user session: collect products to order during the day </li></ul><ul><li>Fast order flow: users know their product codes </li></ul>
  22. 22. Demonstration <ul><li>Android App </li></ul>
  23. 23. Set Up <ul><li>Android SDK + Eclipse ADT plugin </li></ul><ul><li>Source control : private repository in GitHub </li></ul><ul><li>Server Application </li></ul>
  24. 24. Android Tech Track
  25. 25. Approach / Actions: BeJUG <ul><li>What is BeJUG? </li></ul><ul><li>Belgian Java User Group </li></ul><ul><li>Official mission statement; “The primary focus of The Belgium Java User Group (founded in 1997) is to inform our members about the Java ecosystem.” </li></ul><ul><li>When? Every two weeks. </li></ul><ul><li>Where? Several location in Belgium (Ghent, Antwerp, Leuven and Louvain-la-Neuve). </li></ul><ul><li>More information on www.bejug.org </li></ul>
  26. 26. Approach / Actions: BeJUG <ul><li>BeJUG and Sogeti </li></ul><ul><li>5 silver subscriptions; 5 persons from Sogeti can join BeJUG sessions. </li></ul><ul><li>Check your mailbox for proposals or make your own. </li></ul><ul><li>(… and don’t forget the free drinks and the free pizzas!) </li></ul>
  27. 27. Approach / Actions: BeJUG <ul><li>BeJUG and the Android Tech Track </li></ul><ul><li>Regular session </li></ul><ul><ul><li>The “usual” conference, </li></ul></ul><ul><ul><li>One or several gurus present a technology or framework, </li></ul></ul><ul><ul><li>In the case of Android, the conference was about presenting the most important components of an Android application, as well as the interesting “buzzwords” to look into when making an application. </li></ul></ul><ul><li>Dojo session </li></ul><ul><ul><li>A much more technical approach, </li></ul></ul><ul><ul><li>A small contextual idea is given at the beginning of the session, </li></ul></ul><ul><ul><li>Everyone, one person after another, is invited to add a little brick to the whole. </li></ul></ul>
  28. 28. Approach / Actions: Initial App A hello-world application <ul><li>Create a hello world app </li></ul><ul><li>Structure </li></ul><ul><li>Information </li></ul><ul><li>http://developer.android.com/ </li></ul>
  29. 29. Approach / Actions: Initial App Antalis project <ul><li>Notepad tutorial </li></ul><ul><li>CRUD on Products and User Account </li></ul><ul><li>SQLite </li></ul>
  30. 30. Approach / Actions: Authentication <ul><li>Oauth2: protocol for secure API authorization </li></ul><ul><li>Tokens over credentials </li></ul><ul><li>Scenario </li></ul><ul><li>Client Credentials flow </li></ul><ul><li>Implementation </li></ul><ul><ul><li>Server: Spring Security + Spring Mobile Security </li></ul></ul><ul><ul><li>Client: leeloo </li></ul></ul>
  31. 31. Approach / Actions: Promotions <ul><li>Goal : </li></ul><ul><li>A way to display promotions to customers. </li></ul>
  32. 32. Approach / Actions: Promotions <ul><li>Idea : </li></ul><ul><li>Usage of a list that shows different banners and details. </li></ul><ul><li>Expandable List </li></ul>
  33. 33. Approach / Actions: Promotions <ul><li>Server side </li></ul><ul><li>Two webservices : </li></ul><ul><li>getPromotions to retrieve all the promotions as a JSON object. </li></ul><ul><li>getPicture to download the banner linked to a promotion. </li></ul>
  34. 34. Approach / Actions: Promotions <ul><li>Client side </li></ul><ul><li>ExpandableListActivity </li></ul><ul><li>It’s an activity that displays an expandable list of items by binding to a data source and exposes event handlers when the user selects an item. </li></ul><ul><li>ExpandableListAdapter </li></ul><ul><li>An adapter that links an ExpandableListView with the underlying data. This adapter will provide access to the data of the children (categorized by groups) and also instantiate Views for children and groups. </li></ul>
  35. 35. Approach / Actions: Promotions <ul><li>Problems : </li></ul><ul><li>Refresh of the list of promotions when the application is running. </li></ul><ul><li>Latency to display the list due to the download of the pictures. </li></ul>
  36. 36. Approach / Actions: Promotions <ul><li>Promotions – Services - Introduction </li></ul><ul><li>Services are used to; </li></ul><ul><ul><li>Perform a longer-running operation while not interacting with the user </li></ul></ul><ul><ul><li>Supply functionalities for other applications to use </li></ul></ul><ul><li>It has its own lifecycle and can be bound to an activity or any other component having an Android context. </li></ul>
  37. 37. Approach / Actions: Promotions <ul><li>Promotions – Services - Specifications </li></ul><ul><li>Although it can be set up to have its own process, it is by default managed by the main application thread. </li></ul><ul><li>Binding to a service is an asynchronous operation, meaning that you have to first use a callback method before calling specific operations on your service. </li></ul>
  38. 38. Approach / Actions: Promotions <ul><li>Promotions – Asynchronous tasks </li></ul><ul><li>An easy way to execute one-shot background operations without blocking the UI. </li></ul><ul><li>Used by subclassing the AsyncTask class and running the execute(…) method. </li></ul><ul><li>The system keeps a link to the UI thread to allow easier update of the progress in the interface. </li></ul>
  39. 39. Approach / Actions: Barcode scanning <ul><li>Integration of other functionality by Intent s </li></ul><ul><li>Handle the response: ‘onActivityResult’ </li></ul><ul><li>Barcode scanner ZXing </li></ul>
  40. 40. Approach / Actions: Layout <ul><li>Activity class </li></ul><ul><ul><li>Lifecycle </li></ul></ul><ul><ul><li>start Activities and get results </li></ul></ul><ul><li>XML-configuration </li></ul>
  41. 41. Approach / Actions: iPhone
  42. 42. Approach / Actions: iPhone <ul><li>Android </li></ul><ul><li>Java </li></ul><ul><li>(subset of J2SE) </li></ul><ul><li>Component reuse, Activity, Intents </li></ul><ul><li>JUnit tests </li></ul><ul><li>Open source </li></ul><ul><li>Iphone </li></ul><ul><li>Objective-C (C with extensions for OO) </li></ul><ul><li>MVC model, Controller, Sharing Data </li></ul><ul><li>Unit tests </li></ul>Language, Programming model and platform.
  43. 43. Approach / Actions: iPhone <ul><li>Android </li></ul><ul><li>Guide and API reference (online and offline). </li></ul><ul><li>Videos, tutorials </li></ul><ul><li>Open source Android projects </li></ul><ul><li>ApiDemos section </li></ul><ul><li>www.android.com </li></ul><ul><li>Iphone </li></ul><ul><li>Starting guide </li></ul><ul><li>videos </li></ul><ul><li>Some open source projects </li></ul><ul><li>http://developer.apple.com </li></ul>Documentations
  44. 44. Approach / Actions: iPhone <ul><li>Android </li></ul><ul><li>Eclipse Plugin </li></ul><ul><li>Android UIBuilder </li></ul><ul><li>Eclipse debugger </li></ul><ul><li>Trace view </li></ul><ul><li>Emulator </li></ul><ul><li>Debug on real device </li></ul><ul><li>Iphone </li></ul><ul><li>XCode </li></ul><ul><li>UIBuilder </li></ul><ul><li>Debugger </li></ul><ul><li>Profiler </li></ul><ul><li>Emulator </li></ul><ul><li>Debug on real device </li></ul><ul><li>(need to pay for that) </li></ul>Tooling
  45. 45. Approach / Actions: iPhone <ul><li>Android </li></ul><ul><li>Android market </li></ul><ul><li>Available in a few minutes </li></ul><ul><li>Take 30% of your app price. </li></ul><ul><li>Iphone </li></ul><ul><li>App Store </li></ul><ul><li>Need to be approved by Apple </li></ul><ul><li>Take 30% of your app price. </li></ul>App Store
  46. 46. Conclusions <ul><li>Know how </li></ul><ul><li>Confidence </li></ul><ul><li>Track approach worked </li></ul>

×