Posted by The Android Group
At Google I/O this 12 months, we talked about how your app can reap the benefits of Android’s totally different screens, each massive and small. However for those who missed the present, listed here are the highest issues it’s best to know:
Tablets, Foldables, and Giant Screens
It is extra essential than ever to design your app to work nicely on massive screens — together with tablets, foldables, and Chrome OS laptops. There are already over 250 million massive display screen Android gadgets in use at the moment. In the meantime, new foldable gadgets are making it simpler for customers to multitask, and opening up new experiences like tabletop mode for hands-free actions. See this instance of Disney+ utilizing tabletop mode on the Samsung Galaxy Z Fold2.
Thankfully, it is also simpler than ever to design apps which seamlessly scale to adapt to any gadget measurement — together with dynamically resizing on Chrome OS and foldable gadgets, benefiting from Jetpack Compose or ConstraintLayout to construct responsive layouts. We additionally studied how folks work together with massive screens, like the place their fingers are positioned, and we’re providing you with APIs and Instruments to make that have simpler:
We’ve additionally made updates to the Android platform, Chrome OS, and Jetpack WindowManager, so apps simply work higher by default. For instance, many UI components now have default Max Width values to verify they appear higher on massive screens, whereas modifications to the Show API be sure that present apps proceed to render accurately on foldables even when they don’t seem to be utilizing WindowManager to question window metrics.
Study extra about how we’re serving to you construct for giant screens with these I/O classes:
For much more particulars, try the what’s new in foldables, tablets, and large screens article, or learn the case examine on how Google Duo sees increased engagement and improved ratings.
Put on OS
We introduced our largest replace but to the Put on platform, with new options, APIs and instruments to assist builders create lovely, top quality wearable experiences.
There are new Jetpack APIs that can assist you streamline your improvement. The Tiles library provides customers quick, predictable entry to the data and actions they depend on most. One other notable addition is the Ongoing Activities API, which lets you let your customers return to your app after they’ve navigated away (to begin another process reminiscent of music playback). Each of those libraries are at the moment in alpha.
We additionally launched a brand new set of APIs for well being and health that act as an middleman to the sensors and associated algorithms on the gadget to supply apps with high-quality knowledge associated to exercise, train, and well being. The alpha of the Health Services platform is obtainable to make use of at the moment.
Obtain Android Studio Arctic Fox Beta to check out a developer preview of the brand new Put on system picture and begin making ready your apps for the brand new platform. Take a look at the I/O classes under to be taught extra about these bulletins:
Android TV OS now has over 80 million month-to-month lively gadgets, with 80% development within the US and is on the coronary heart of the Google TV expertise launched final fall. In the meantime, Google TV itself may be discovered on streaming gadgets just like the Chromecast with Google TV, good TVs from Sony, and as an app on Android gadgets — together with tablets.
This 12 months at I/O, we introduced a number of new instruments and options to make creating for Android TV OS simpler:
- Cast Connect with Stream Switch permits shifting present audio and video streams between solid gadgets, whereas Stream Enlargement permits enjoying audio on a number of gadgets concurrently.
- We are actually making our first Google TV Emulator out there alongside the Android TV emulator, each working on Android 11.
- Firebase Take a look at Lab is including Android TV assist, letting you check your app within the cloud throughout a whole lot or hundreds of digital gadgets. Bodily Units can be coming quickly.
- We’re making the Android 12 Beta 1 out there for TV on ADT-3 at the moment.
These releases make it simpler to construct and check functions throughout a variety of gadget configurations, whereas bringing the most recent Android 12, Googler Assistant, and Solid options to the TV. To be taught extra, watch the What’s new in Android TV and Google TV session from I/O.
Android for Vehicles
Android Auto permits functions to attach with the infotainment shows constructed into many trendy autos. To make this even simpler we not too long ago made the Android for Cars App Library available as part of Jetpack. This library permits navigation, EV charging, and parking apps to combine instantly with suitable vehicles.
We plan to broaden to extra app classes sooner or later, so for those who’re expressing curiosity in bringing your app to Android Auto please fill out this interest form. You can even get began with the Android for Vehicles App Library at the moment, by visiting g.co/androidforcars. Watch the What’s new with Android for Cars session from I/O for much more element, or the accompanying What’s new with Android for Cars weblog submit.