Posted by The Android Staff
At Google I/O this yr, we talked about how your app can make the most of Android’s completely different screens, each giant and small. However in the event you missed the present, listed here are the highest issues you need to know:
Tablets, Foldables, and Massive Screens
It is extra vital than ever to design your app to work effectively on giant screens — together with tablets, foldables, and Chrome OS laptops. There are already over 250 million giant display screen Android units in use right now. In the meantime, new foldable units 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.
Luckily, it is also simpler than ever to design apps which seamlessly scale to adapt to any machine measurement — together with dynamically resizing on Chrome OS and foldable units, profiting from Jetpack Compose or ConstraintLayout to construct responsive layouts. We additionally studied how folks work together with giant 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 parts now have default Max Width values to ensure they appear higher on giant screens, whereas modifications to the Show API be sure that current apps proceed to render accurately on foldables even when they are not utilizing WindowManager to question window metrics.
Be taught extra about how we’re serving to you construct for giant screens with these I/O periods:
For much more particulars, take a look at 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 greatest replace but to the Put on platform, with new options, APIs and instruments to assist builders create lovely, prime quality wearable experiences.
There are new Jetpack APIs that will help you streamline your improvement. The Tiles library offers customers quick, predictable entry to the data and actions they depend on most. One other notable addition is the Ongoing Activities API, which allows you to let your customers return to your app after they’ve navigated away (to start out another process corresponding to 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 machine to offer apps with high-quality knowledge associated to exercise, train, and well being. The alpha of the Health Services platform is out there to make use of right now.
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. Try the I/O periods beneath to be taught extra about these bulletins:
Android TV OS now has over 80 million month-to-month energetic units, with 80% progress within the US and is on the coronary heart of the Google TV expertise launched final fall. In the meantime, Google TV itself might be discovered on streaming units just like the Chromecast with Google TV, good TVs from Sony, and as an app on Android units — together with tablets.
This yr at I/O, we introduced a number of new instruments and options to make growing for Android TV OS simpler:
- Cast Connect with Stream Switch permits transferring current audio and video streams between solid units, whereas Stream Growth permits enjoying audio on a number of units concurrently.
- We are actually making our first Google TV Emulator obtainable alongside the Android TV emulator, each operating on Android 11.
- Firebase Check Lab is including Android TV assist, letting you take a look at your app within the cloud throughout a whole lot or hundreds of digital units. Bodily Units can be coming quickly.
- We’re making the Android 12 Beta 1 obtainable for TV on ADT-3 right now.
These releases make it simpler to construct and take a look at functions throughout a variety of machine configurations, whereas bringing the newest Android 12, Googler Assistant, and Forged 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 lately 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 automobiles.
We plan to broaden to extra app classes sooner or later, so in the event you’re expressing curiosity in bringing your app to Android Auto please fill out this interest form. You can too get began with the Android for Vehicles App Library right now, 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.