Kseniia Shumelchyk, Android Developer Relations Engineer, and Garan Jenkin, Android Developer Relations Engineer
Put on OS has seen unbelievable progress and developments over the previous 12 months. With watch launches from Pixel, Samsung and extra, Put on OS grew its person base by 40% in 2023 and has customers in over 160 international locations and areas. And Put on OS has expanded to extra manufacturers together with OnePlus, OPPO and Xiaomi. This progress has been accompanied by heavy investments in efficiency and energy optimization.
On this weblog put up, we’ll be highlighting a few of the key updates we introduced at Google I/O this 12 months, so let’s dive in and discover the most recent developments in Put on OS and how one can profit from the platform.
We’re excited to be releasing the Developer Preview of Put on OS 5, the subsequent model of Google’s smartwatch platform arriving later this 12 months, based mostly on Android 14. Central to our launch of Put on OS 5 is continuous to reinforce battery life.
Put on OS 5 brings efficiency enhancements over Put on OS 4. Monitoring your exercise is now extra environment friendly; for instance, working a marathon consumes as much as 20% much less energy on Put on OS 5 than on Put on OS 4.
That will help you develop power-efficient apps on Put on OS, we’ve launched a new information to preserve energy and battery. Ensure to have a look!
Put on OS 5 relies on Android 14, which brings with it a lot of developer-facing modifications. Try what’s modified and check out the brand new Put on OS 5 emulator to check your app for compatibility with the brand new platform model.
Final 12 months we launched the Watch Face Format as a part of Put on OS 4, and we’ve had a unbelievable response, with 30% of watch faces in Google Play already utilizing the format. It’s been nice to see what you’ve all been in a position to create thus far utilizing the Watch Face Format!
We’re excited to deliver you the subsequent iteration of the Watch Face Format with Put on OS 5.
Moreover, we’re asserting some modifications to present watch face improvement utilizing Jetpack Watch Face APIs. Ranging from Put on OS 5, we’re introducing restrictions to problems for watch faces constructed with AndroidX or the Wearable Assist Library that can apply to some information sources, in addition to Google Play publishing limitations to new watch faces constructed with these libraries.
Try the Watch Faces weblog put up for full particulars on the brand new options in Watch Face Format and modifications to look at faces improvement choices.
Adoption of Compose on Put on OS has grown 200% up to now 12 months, highlighting the benefit with which Compose permits builders to construct for the watch kind issue. Lately we’ve seen high apps similar to WhatsApp, Gmail and Google Calendar constructed completely utilizing Compose for Put on OS, and it’s the advisable method for constructing person interfaces for Put on OS apps.
With the 1.3 launch of Jetpack Compose for Put on OS, we’ve graduated a lot of visible enhancements and fixes from beta to secure.
Previously 12 months, we’ve added options similar to SwipeToReveal, to provide customers extra means for finishing actions, an expandable merchandise, to reinforce the usage of the smaller display and present extra data the place wanted, and a variety of WearPreview supporting annotations, for guaranteeing your app works optimally throughout the vary of machine sizes and font scales.
And at Google I/O 2024, we introduced a whole lot of new updates with Jetpack Compose that show you how to construct throughout kind components, together with Put on OS, learn extra in this weblog and take a look at how SoundCloud supported extra screens utilizing 45% much less code with Jetpack Compose.
Put on OS tiles give customers quick, predictable entry to the data and actions they depend on most. Model 1.4 of the Jetpack Tiles library, at present in alpha, introduces preview help for Android Studio that can assist you rapidly iterate in your Tile improvement whereas additionally serving to you create optimal-looking tiles on a variety of show sizes.
Previews may be seen beginning in Android Studio Koala Function Drop (Canary), with the next dependencies:
@Preview(machine = WearDevices.SMALL_ROUND)
enjoyable smallPreview(context: Context) = TilePreviewData(
onTileRequest = { request ->
TilePreviewHelper.singleTimelineEntryTileBuilder(
buildMyTileLayout()
).construct()
}
)
We’ve additionally launched higher means on your app to find out whether or not your tiles are in use, via the getActiveTilesAsync() methodology.
Inside ProtoLayout’s secure model 1.1, as utilized by Tiles, we’ve launched a lot of modifications, similar to the next:
And from 1.2.0-alpha02, we’ve made it simpler on your layouts to regulate appropriately for various show sizes by including the setResponsiveContentInsetEnabled() methodology to PrimaryLayout, in addition to updating it for EdgeContentLayout. To make use of this setter, replace your code as follows:
PrimaryLayout.Builder(deviceParameters)
.setResponsiveContentInsetEnabled(true)
.setContent(
// ...
)
.construct()
Android Studio Koala Function Drop (Canary) brings a brand new sensor panel to make it simpler to check use of Well being Providers in your Put on OS app. The panel permits you to configure capabilities of the machine, set values of particular information varieties and stimulate occasions similar to auto-pause and resume of workouts.
Try this weblog to be taught extra about tooling updates.
With the momentum surrounding Put on OS, we’re seeing a greater diversity of spherical display sizes and resolutions, which offers extra decisions for the person.
We’re releasing new pointers on how you can construct responsive UIs for various watch show sizes, in addition to updates to present libraries to introduce adaptive layouts, and parts.
Try the ComposeStarter pattern for Put on OS on Github to see how you can benefit from these updates in your app. Moreover, we’ve up to date the pattern to offer examples of utilizing instruments to judge your layouts, together with :
There has by no means been a greater time to start out constructing for Put on OS! Be sure you take a look at Constructing for the way forward for Put on OS technical session to be taught extra about all the most recent updates for Put on OS!
To get began:
We’re trying ahead to seeing the experiences that you simply construct on Put on OS!
POCO continues to make one of the best funds telephones, and the producer is doing…
- Commercial - Designed for players and creators alike, the ROG Astral sequence combines excellent…
Good garments, also referred to as e-textiles or wearable expertise, are clothes embedded with sensors,…
Completely satisfied Halloween! Have fun with us be studying about a number of spooky science…
Digital potentiometers (“Dpots”) are a various and helpful class of digital/analog elements with as much…
Keysight Applied sciences pronounces the enlargement of its Novus portfolio with the Novus mini automotive,…