Posted by The Android Staff
At Google I/O this 12 months, we talked about how your app can make the most of Android’s totally different screens, each giant and small. However if you happen to missed the present, listed here are the highest issues you must know:
Tablets, Foldables, and Giant Screens
It is extra vital than ever to design your app to work nicely on giant screens — together with tablets, foldables, and Chrome OS laptops. There are already over 250 million giant display Android units in use at present. 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.
Happily, 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, benefiting 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 supplying 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 verify they give the impression of being higher on giant screens, whereas adjustments to the Show API make sure that current 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 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 knowledge 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 begin another process resembling 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 at present.
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 beneath to be taught extra about these bulletins:
Android TV OS now has over 80 million month-to-month energetic units, 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 will 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 12 months 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 shifting current audio and video streams between solid units, whereas Stream Growth permits taking part in audio on a number of units concurrently.
- We at the moment are making our first Google TV Emulator out there alongside the Android TV emulator, each operating on Android 11.
- Firebase Take a look at 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 might be coming quickly.
- We’re making the Android 12 Beta 1 out there for TV on ADT-3 at present.
These releases make it simpler to construct and take a look at purposes throughout a spread of machine configurations, whereas bringing the most recent 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 Automobiles
Android Auto permits purposes to attach with the infotainment shows constructed into many trendy automobiles. 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 straight with appropriate vehicles.
We plan to develop to extra app classes sooner or later, so if you happen to’re expressing curiosity in bringing your app to Android Auto please fill out this interest form. You too can get began with the Android for Automobiles App Library at present, 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 put up.