Illustration by Virginia Poltrack

Now in Android #38

Google I/O 2021, RenderScript deprecation, #MADSkills Navigation episodes, articles, and a podcast episode

Chet Haase
Apr 21 · 5 min read

Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.

NiA38 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.

Podcast

Click on the link below, or just subscribe to the podcast in your favorite client app.

Android 12: Developer Preview 3

The third developer preview release for Android 12 is now available.

Read the blog for an overview of what’s new in the release for developers, from a consistent and customizable launch experience to haptics effects and APIs, to camera capabilities, and more.

Google I/O 2021: For Free, For Everyone

Google I/O is back, except this time it’s totally different. The entire event is online and it’s available for everyone. No more refreshing the site to see if you can nab a ticket before they run out! Just register and join us!

RenderScript @Deprecated

We are deprecating the RenderScript APIs in favor of cross-platform GPU compute solutions such as Vulkan and OpenGL, and encouraging developers who want to take advantage of GPU compute to move over to these other APIs.

Since RenderScript was most heavily used for image-processing intrinsics, such as blurring, we are providing an open source library with most of RenderScript’s intrinsics functionality.

Check out Daniel Galpin’s article with more of the details, as well as documentation on migrating from RenderScript to Vulkan.

MAD Skills: Navigation

The MAD Skills series continues to roll on, with technical content about modern Android development.

Murat Yener has started a new series on Navigation component:

This series builds on the previous Navigation series. That original series use a donut tracking app to show how to use some of the features of Navigation like dialog destinations, SafeArgs, and deep links. This second series extends that original sample by adding the ability to track coffee data as well (because, well, how can you have donuts without coffee?)

The first episode covers navigating between different elements on an app’s UI, such as the ActionBar, a drawer, or bottom tabs, all made easier with Navigation component and menu IDs.

Or for people who prefer reading their content, here it is in article form:

Stay tuned for more Navigation content as Murat continues to explore other areas of the Navigation APIs.

But Wait, There’s More!

For ongoing content, be sure to check the MAD Skills playlist on YouTube, the articles on Medium, or this handy landing page that points to all of it.

Articles

Package Visibility

One of the privacy-related changes in Android 11 was around package visibility. Specifically, it is no longer possible for apps to get information on other installed apps by default. Instead, apps need to declare which apps they want access to in their manifest. Alternatively, apps can always use intent-launching to accomplish tasks, as opposed to calling out to specific applications which happen to be installed.

For more details on how this works and how you can migrate to this requirement in Android 11 and later, check out Meghan Mehta’s blog:

DataStore

DataStore is a new AndroidX library, currently in alpha, that is intended to replace Shared Preferences as a lightweight storage mechanism. By default, DataStore uses protocol buffers to serialize the data being stored. Rohit’s article shows how you can use immutable Kotlin data classes and serialization instead.

Room for Migration

Florina Muntenescu posted an article about the new auto-migration feature in the latest version of Room, 2.4.0-alpha01. Using this feature makes it easier for you to migrate your database between versions, letting Room handle the details for you. There are still cases in which auto-migration is not possible, so you may still need the existing mechanism and APIs for manual migration; check out the article for the details.

Podcast Episodes

ADB 160: ART History

Romain Guy, Tor Norbye, and I talked with Brian Carlstrom and Nicolas Geoffray from the ART team about the early prototypes and bringup of ART, getting it production ready, and recent runtime developments.

Now then…

That’s it for this time. So go check out the new Navigation MADSkills series! Read about RenderScript deprecation and check out the new image processing library! Watch the latest #MADSkills series on Navigation component! Read about package visibility in Android 11+, serializing DataStore content with Kotlin serialization, and Room auto-migrations! Listen to the latest ADB podcast And come back here soon for the next update from the Android developer universe.

Android Developers

The official Android Developers publication on Medium

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store