Upgrade to Pro — share decks privately, control downloads, hide ads and more …

New way of doing things in Android

Aimanzaki
November 25, 2018

New way of doing things in Android

The talk will be 45:00 minutes. It is a collection of the best possible recent developments made in Android. It covers the most recent enhancements made in Android for developers. It will includes the overview and detailed information about new things in:

1. AndroidX the Support Library.
2. New in Android Testing (Espresso and JUnit)
3. Android App Bundles.
4. RTT Api for inside the building location.
5. Enterprise Apps
6. Slices
7. Deep Linking
8. Notifications( inline images and Smart Reply)
9. Android Studio profiler.
10. Layout Inspector

Aimanzaki

November 25, 2018
Tweet

Other Decks in Programming

Transcript

  1. Aimanzaki Kagzi AimCrafters @Aimanzaki New way of doing things in

    Android Dhruv Patel Reliance Jio @DearDhruv
  2. Aimanzaki Kagzi AimCrafters New way of doing things in Android

    Highlighting the NEW!! @Aimanzaki fb.com/aimanzakikagzi + AimanZakiKagzi in/aimanzaki
  3. • Android X • Android App bundles • New in

    Testing • Enterprise Apps • RTT API for Location • Deep Linking • Slice • Notifications • Layout Inspector • Studio Profiler Agenda
  4. Support Library (com.android.support) What it is? • v4 Support library?

    • v7 Support library? • v8 Support library? • v13 Support library?
  5. 6

  6. 7

  7. 8

  8. Android X • All libraries are broken into smaller pieces.

    • Feature based maven groupid and artifactid • Not tied with API versions. • Each package has it own version. • Last version of normal support library is 28.0.0.
  9. Supporting 3rd party libraries Jetifier is released which perform refactoring

    task inside a JAR/AAR file. It’s going to refactor your 3rd parties libraries. Available as standalone JAR or Gradle plug in.
  10. What’s new in Android X? 1. Recyclerview-selection . 2. HEIF

    Writer provides support for writing HEIF-format still images 3. Design Library. Theme.MaterialComponents 4. Slices 5. Browser actions
  11. App Bundles. 1. Smaller size APKs for download. 2. Easier

    artifacts management. 3. Single comprehensive artifact replacing APK on Google Play. 4. Dynamic Delivery
  12. • App Bundle is NOT apk. • Can’t be installed

    on devices. • It contains metadata files • Has .aab file extension • Supported after Android L
  13. 21

  14. 24

  15. What is new? • Kotlin Support. • New APIs to

    reduce boilerplate and increase readability. Ahmedabad
  16. New Enhancements • Switch app between profiles. Enterprise apps •

    Locked apps on device screen • Ephemeral Users
  17. 34 RTT(Wifi Round Trip Time) API • Precise Indoor positioning

    accurate to ONE meter. • Calculating the distance from the Access Points. • No need to connect. • Required specific set of hardware in phone. • Fused location provider will have RTT. Ahmedabad android.net.wifi.rtt.*-- IEEE 802.11mc
  18. 36

  19. 37 Enabling deep link to your app <action android:name="android.intent.action.VIEW" />

    <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="domain-name.com" android:scheme="https" />
  20. 38

  21. “To think creatively, we must be able to look afresh

    at what we normally take for granted” - George Keller “Quick access to data and controls for app” - Every damn user
  22. What slices are good for? • Custom controls outside of

    application • E.g. Buttons, Toggles, Sliders • Navigate to an application Ahmedabad
  23. Develop • Rich and flexible layouts - Template • Dynamic

    and interactive content • Backward compatible - Kitkat/API 19+ Ahmedabad
  24. SlicePresenter (i.e. Android Search) URI SliceProvider (i.e. My App) Architectural

    overview Slices presenter fetch Slices by alling System API with the Slice URI Default case Slice OnBindSlice() SlicePresenter (i.e. Android Search) URI SliceProvider (i.e. My App) On data change Slice OnBindSlice() notifyChange()
  25. 54