Skip to main content

Google releases Android 12 Developer Preview 2

 

Today Google released Developer Preview 2 of Android 12 to developers. Some features included in DP2 are user-facing updates to PIP, lockscreen pin entry, one-handed mode, tweaks to the dark theme, and many more.


In a blog post Google’s Dave Burke, VP of Engineering writes


Last month we shared the first preview of Android 12, an early look at the next version of Android. Today we’re bringing you the next milestone build in this year’s release, with more new features and changes for you to try with your apps.


In Android 12 we’re making the OS smarter, easier to use, and better performing, with privacy and security at the core. We’re also working to give you new tools for building great experiences for users, whether they’re using phones, laptops, tablets, TVs, or cars. Some things to look for in today’s release include new rounded corners APIs, improved picture-in-picture APIs, better companion device management, easier effects like blur and color filter, app overlay controls, and more.


More on the release and what's new under the hood can be found below.


Trust and safety


We’re continuing to focus on giving users more transparency and control while keeping their devices and data secure. In today’s release, we’ve added some new features to check out and test with your apps.


App overlay controls - Android’s system alert window gives apps a way to get users’ attention for important actions by showing an overlay on top of the active app. These windows can interrupt the user, though, so we already require apps to request permission before displaying them. Now in Android 12 we’re giving you control over whether these overlays can be shown over your content. 


Extended security for lockscreen notification actions - Android 12 adds finer-grained privacy and security controls for notifications displayed on the device lockscreen. 


Access to app digests - For apps that need to validate the integrity of app packages installed on Android devices, we’re introducing a new API that lets you query the platform directly for the checksum of an installed app.


Better user experience tools


We’re working to give you more tools to help you deliver a polished experience and better performance for users. Here are some of the updates in today’s release.



Support for Rounded corners - Many modern devices use screens with rounded corners, giving them a clean modern look, but also introducing some extra considerations for app developers. To deliver a great UX on these devices, developers need to account for the rounded corners and adjust any nearby UI elements to prevent them from being truncated.


Picture in Picture (PIP) improvements - for people using gesture nav, we’ve improved how apps transition to picture-in-picture (PIP) mode on swipe up-to-home. If an app enables auto-PIP, the system now directly transitions the app to PIP mode on up-to-home, instead of waiting for the up-to-home animation to complete. This makes the transition smoother and improves perceived performance. We’ve also improved PIP window resizing for non-video content. Apps can now enable seamless resize to let the system resize the PIP Activity when needed. Android 12 also supports stashing the PiP window by dragging it to the left or right edge of the screen.


Keeping companion device apps awake - For apps that manage companion devices like smartwatches and fitness trackers, it can be a challenge to make sure the app is running and connected whenever an associated companion device is nearby. To make this easier, we’re extending the Companion Device Manager with a new CompanionDeviceService API. Apps that manage companion devices can implement this service to let the system wake the app whenever the associated companion device is nearby. The system keeps the service bound whenever the device is nearby, and notifies the service when the device goes in and out of range or is turned off, to let the app clean up state as needed.


Bandwidth estimation improvements - for developers who need to know the typical bandwidth available to each user so you can tailor their experience, we now provide improved bandwidth estimation.


Easier blurs, color filters and other effects - In Android 12, we’re making it easier to apply common graphics effects to your Views and rendering hierarchies. 


This appears to be another huge release and I’m looking forward to future DPs and Betas. Android 12 is shaping up to be a massive release in the fall.


Link(s)

Android Developers Blog


Comments

Popular posts from this blog

The Ultimate Budget Companion: Running Android 16 on the 2026 Walmart Onn 8.1

If only Google would make a tablet like the Onn 8.1 I would be an extremely happy camper. But we are here and Google hasn't so we have this budget tablet from Walmart. While I won't give it away this early, however, the Onn 8.1 tablet is an interesting option in the budget space.  What I like about the Onn 8.1 tablet The stand out feature of the tablet for me is the size and the aspect ratio of the display. I must admit that the size is ideal for travel, reading and consuming media. The aspect ratio is not wide and I prefer that as apps tend to look better while filling the space on the screen really well. The software is what I would consider stock Android and it's my favorite of what's available. I also like how light weight the tablet is making it easy to hold in just about any orientation. Battery life is relatively good especially when in standby mode. The body of the tablet seems to be durable. I'm rocking this thing case-less and there are no scratches on the...

Revisiting the Sony XM4s in 2025 | Still so good! (video)

 

Waiting on Google: Why My Next Laptop Won't Be a Mac or PC (The "Googlebook" Era)

The release of the newly announced Googlebook cannot come fast enough for me. I am in the market for a new laptop and have my sights set on a Googlebook with the hope Google is making one. So far there are about five laptop manufacturers that are slated to be producing and releasing one this calendar year. Although, details are sparse surrounding the Googlebook I've seen just enough to know that I want this device to be a part of my tech ecosystem.  My current tech ecosystem Admittedly, I've been holding out for a minute to get a new laptop. Fortunately, my current device is still meeting my needs but barely. Right now, I am rocking a Pixelbook Go from 2019 and using a Pixel 10 Pro with a Pixel Tablet. I'm fine with this setup but my needs for more capable and powerful computing is getting harder to ignore. My Pixelbook Go does not seem as connected to my other devices as I would like which would explain why I don't use it as much. ChromeOS has not progressed much over ...