Now in Android #45
Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.
NiA45 in Video and Podcast Form
This Now in Android is also offered in video and podcast form. It’s the same content, but with less reading required. The article version (keep reading!) is still the place to come for links to all of the content that’s covered.
Click on the link below, or just subscribe to the podcast in your favorite client app.
Android 12 Beta 4 🤖
We released the fourth Beta of Android 12, which takes us to platform stability; Android 12’s APIs and all app-facing behaviors are finalized, and, if you haven’t started already, it’s time to prepare necessary app updates in time for the official release later in the year. You can try Beta 4 today on your Pixel device and on select devices from partners like ASUS, OnePlus, Oppo, Realme, Sharp, Xiaomi, and ZTE. Beta 4 is also available for Android TV with the ADT-3 developer kit. The post has more information on how to get the beta and test the compatibility of your app.
Android 12 Beta 4 and Platform Stability
Today we're bringing you the fourth Beta of Android 12, and moving into the final phase of the release. We've built…
Share WearOS Tiles ⌚
Tiles are built as part of your WearOS app, providing users quick access to information and actions with a swipe from the watch face home screen. We released the Jetpack Tiles API Alpha a while ago to allow you to build Tiles and preview them within your app — but now you can make them available to users by publishing your app to Google Play. You can also upload a screenshot of your Tile to your Play Store preview assets within Google Play Console; make sure to let your users know they can try out the new experience.
Sharing Tiles with your smartwatch users:
Tiles provide quick access to information and actions with a simple swipe from the watch face home screen. This gives…
Large-screen UI in the Google I/O App 🦊
While this year’s Google I/O didn’t include a new release of the Google I/O app, we updated the codebase to showcase some new features and trends in Modern Android Development.
One area we focused on is improving the app experience on large screens: tablets, foldables, and ChromeOS / Desktop. Over the past year, devices with large screens have seen a growth in popularity and usage, to over 250 million active devices today, and it’s essential that apps adapt to use the extra screen space wisely. Here are some of the techniques we used to make the Google I/O app perform better on large screens:
- Responsive navigation we used a navigation rail in wide landscape views to put navigation buttons on the side rather than the bottom.
- One pane or two panes: we used a SlidingPaneLayout to display either one or two panes depending on the size and orientation of the screen including a single pane of content in the narrow portrait view on tablets.
- Transforming space: we used ConstraintLayout to prevent UI elements becoming too stretched, too far apart, or packed too closely together.
- Transforming content: we used an alternative layout to take advantage of the extra screen space. On narrow screens, you’ll see a list of items that expand and collapse when tapped. On wider screens, this transforms into a grid of cards that show all the item details right away.
For more information on how we enhanced the I/O app for large screens, check out the post!
Large-screen UI in the Google I/O App
On May 18–20, Google hosted our yearly I/O developer conference completely online, with 112 sessions, 151 codelabs, 79…
Join Android Study Jams 📝
Android development is more fun with friends! Join fellow developers in your community and improve your skills by attending an Android Study Jam! Events are currently taking place across North America and cater to all levels, from beginner to advanced!
Android Study Jams are community events where developers come together to learn, create, and collaborate. Participants will follow guided codelabs designed to improve their development skills, all with an extra focus on improving the quality of applications.
If you want to join an Android Study Jam, meet fellow developers, and learn alongside friends old and new, then check out this link to find an event!
Join the North America Android Study Jams to learn more about developing quality Android apps
Learning about Android development doesn't mean you have to learn by yourself. Join fellow developers in your community…
MAD Skills: Performance ⏲️
The MAD Skills series continues with more technical content about modern Android development.
This week continues the Performance series and there are two more episodes.
In the first episode, Carmen covers the Perfetto trace viewer, an alternative to the Android Studio profiler for viewing system traces. Where Android Studio focuses on system performance in context of your app, and is tightly integrated with the development workflow, Perfetto has additional functionality to examine interactions between multiple processes, such as the ability to get details on who is running code at the other end of a binder transaction. Tune in to the episode to learn more!
But Wait, There’s More MAD content!
Isai authored two new codelabs to help you learn about the Nearby APIs.
The first codelab covers the Nearby Messages API which enables user interactions based on physical proximity. A use case of this API can be letting friends easily discover each other when they are in close physical proximity, spontaneous lunch plans anyone? 🍔
The second codelab covers the Nearby Connections API, which lets users communicate with each other without data limit and without an internet connection. You will build a multiplayer Rock-Paper-Scissors game that works without the internet as long as users are within 100 meters of each other.
AndroidX Releases 📚
There are many updates to AndroidX libraries:
- Jetpack Compose-related updates were focused on updating the Kotlin version along with adding an optional FilterQuality parameter to help enhance the look of scaled pixel art.
- Games-Activity, Games-Controller, and Games-Text-Input have all been released to stable.
- A new version of Startup was released, enabling support for automatic initialization in multiple processes.
- Datastore was released, providing a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers.
- Core-Google-Shortcuts is in alpha and offers indexing support for URI-based icons in shortcuts to be displayed by Google apps.
ADB Podcast Episodes 🎧
There has been a new episode of Android Developers Backstage posted since the last Now in Android.
ADB released episode 172 covering privacy. In this episode, Chet, Romain and Tor talk with Sara N-Marandi, Fred Chung and Erik Wolsheimer about the new privacy features in Android 12, such as the privacy dashboard, and the camera and microphone usage indicators.
Now then… 👋
That’s it for this time, with Android 12 Beta 4 and Platform Stability, Large-screen UI in the Google I/O App, Sharing Tiles with your smartwatch users, Android Study Jams, new episodes from the MAD Performance series, AndroidX Releases and Android 12 privacy. Come back here soon for the next update from the Android developer universe.