Android Apps

Google I / O 2019: Empowering Builders to Create the Greatest Android + Play Experiences

Posted by Chet Haase
It's a pleasure to be in our backyard in order that Google I / O can talk with Android builders world wide. The 7,200 individuals at Shoreline Amphitheater, thousands and thousands of viewers and 1000’s of builders at native I / O occasions unfold throughout greater than 80 nations have been knowledgeable of our efforts to simplify the lives of builders. Immediately, at Google I / O, we talked about two massive themes; assist our builders grow to be extra productive and improve the privateness and safety of customers on the platform. Let's take a more in-depth have a look at the foremost information of the builders at I / O thus far:

Productiveness of builders

This 12 months, we centered on a easy thought: we wish to prevent time day-after-day. By additional enhancing all the pieces you utilize.


Two years in the past, we introduced that Kotlin was a supported language for Android. Our greatest builders already cherished it and since then, the expansion price has been unimaginable. Kotlin is now utilized by over 50% of professional builders on Android. It is without doubt one of the hottest languages ​​for 2 years on Stack Overflow and one of many quickest rising on GitHub when it comes to contributors.
Immediately we announce one other massive step ahead: the event of Android will grow to be increasingly a precedence for Kotlin. Many new Jetpack APIs and options will likely be obtainable in Kotlin. When you begin a brand new challenge, you must write it in Kotlin; Code written in Kotlin usually means rather a lot much less code for you – much less code to kind, take a look at and preserve. And we proceed to spend money on instruments, documentation, coaching and occasions to make Kotlin even simpler to study and use. This consists of Kotlin / In every single place, a brand new collection of worldwide occasions we’re launching with JetBrains, the place you’ll be able to study extra about language, new Udacity programs, and extra.

Android Jetpack

Final 12 months, we introduced Android Jetpack, the Android API, which accelerates the event of Android and facilitates the creation of top of the range functions, with much less code. Greater than 80% of our high 1,000 apps already use Jetpack, as we proceed to additional simplify the day-to-day challenges of builders. Immediately we publish 6 new Jetpack libraries (in alpha) and produce 5 libraries in beta high quality. Listed here are three highlights:

CameraX – You advised us that working successfully on a variety of distinctive Android units was troublesome. CameraX is a brand new open supply Android Jetpack library that makes digicam improvement simpler and sooner. It offers a seamless digicam expertise throughout all units, eliminating the necessity to preserve device-specific configurations. Superior and software program options equivalent to optical zoom, bokeh, HDR, and night time mode are supported on taking part producers' units. It really works with virtually 90% of units (backward suitable with L). There may be additionally a simple migration path from current digicam APIs and it really works seamlessly with camera2 APIs. 70% of the usage of the digicam on Android comes from put in functions (and never from the machine digicam utility), so we’re excited to facilitate the event of the digicam.

Structure Parts – Now we have made many additions and enhancements primarily based in your feedback. You advised us that competitors on Android was troublesome. We subsequently provide LiveData and Lifecycles with tips to help the commonest distinctive asynchronous operations. With the ViewModel with SavedState module, you’ll be able to get rid of commonplace code and luxuriate in the advantages of utilizing ViewModel and SavedState with easy APIs to avoid wasting and retrieve knowledge instantly out of your ViewModel. And in case you missed it, we introduced just a few months in the past steady variations of WorkManager (background processing) and Navigation (navigation between the screens of the functions).
Jetpack Compose – A lot of you might be asking us for a contemporary, responsive UI toolkit for Android that takes benefit of Kotlin and seamlessly integrates with the platform and all of your current code. Immediately we share the crew's work on Jetpack Compose. Jetpack Compose is designed to simplify consumer interface improvement by combining a responsive programming mannequin with the conciseness and ease of use of Kotlin. Appropriate with the prevailing UI toolkit, you’ll be able to mix views with direct entry to all Android and Jetpack APIs. It is usually totally declarative for the definition of UI elements. And, it was designed from the start with Materials, animations and instruments. From right this moment, we develop this within the open and you could find all of the code on AOSP.

Android Studio

Immediately we launch Android Studio three.5 in beta. For months, the crew has centered solely on refining and sharpening every day improvement workflows, with Challenge Marble. Android Studio three.5 consists of higher IDE reminiscence administration for big tasks, decreased typing latency, framing enhancements, CPU utilization optimizations, editor enhancements, and extra. web page, emulator enhancements, building modifications, in addition to a whole rewrite of On the spot Run, now referred to as Apply Modifications. Reliably accelerates the power to see your code modifications on a tool – greater than 400 high-priority bug fixes.

Computerized studying on the Android scale

In Android Q, we made important enhancements to the Android NNAPI API. First, we have now elevated the variety of supported operators from 38 to over 90. The overwhelming majority of fashions can now be accelerated by NNAPI with out modification. We additionally launched an introspection API for superior customers, permitting full management over the elements that deal with acceleration (for instance, DSP versus NPU). We additionally labored carefully with distributors to dramatically enhance efficiency, each when it comes to latency and energy consumption. By working with MediaTek, we had been in a position to velocity up the ML Equipment Face Detection API by 9X on the Helio P90. Working with Qualcomm, we had been in a position to speed up OCR of Google's aim on the Snapdragon 855 Synthetic Intelligence Engine by rising the velocity of 3X whereas lowering energy consumption by three.7X.

Dynamic capabilities and updates within the utility

Final 12 months, we launched the Android utility package that can assist you scale back the scale of functions and enhance the variety of installations. Since then, we have now seen greater than 80,000 units of functions in manufacturing, with a median economic system of 20%. And right this moment, we have now a number of bulletins that can assist you scale back the scale and supply updates to your customers even sooner. Immediately, we’re happy to share that dynamic function modules are transferring from beta to steady launch. With dynamic function packs, you’ll be able to additional scale back the scale of your utility by selecting the elements of your app to stream, relying on circumstances equivalent to machine and nation options. You may even ship modules on demand as an alternative of set up. And right this moment, we’re additionally passing built-in updates to the appliance of the beta model to the steady model. The flexibility to dynamically replace apps is one thing you've been asking for for a very long time. Suppose your utility has an important bug and you must delete it instantly. you don’t want to attend for customers to find an replace within the Play Retailer. Now you’ll be able to.

Privateness and safety of customers on Android Q

As a developer group, all of us care about doing issues proper. It's about making a platform that gives highly effective developer performance, whereas making certain the safety and privateness of customers. We launched Android Q Beta just a few months in the past with greater than 50 options and enhancements relating to consumer privateness and safety. These modifications convey customers extra transparency and management.
As all the time, we’re working exhausting to do all the pieces we will for builders who undertake the brand new model. We all know you have got your personal options to construct. That’s the reason, with these Q modifications, we have now labored very exhausting to attenuate the influence for you and to combine your feedback. Now we have given as a lot advance discover as attainable, in addition to full and detailed technical info upfront, with a view to make adoption as simple as attainable. We additionally wish to thank the group in your ongoing feedback. It's a terrific assist for the crew that works exhausting to get issues proper. Modifications to the storage of beta three are instance. Your feedback have helped us evolve the performance over time. Android has lengthy been dedicated to downplaying all radical modifications. Our dedication has not modified and we are going to do all the pieces in our energy to maintain Android open, versatile and user-friendly for the builders all of us love.

Be a part of Google I / O!

We're providing you with plenty of nice content material over the following three days, together with over 45 periods on Android. We’re delighted that you’re right here, at Shoreline, at an I / O Prolonged occasion or on-line by way of the livestream. We’re continuously investing in our platform that connects builders to billions of customers world wide. To your complete Android group, thanks in your help and suggestions, and your participation in Android.