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

YT Music is my new go to Podcast player | The case to make it your podcast app

Believe it or not but YouTube Music did not always have podcasts. As a matter of fact YT Music was not the home for music for Google. That was once Google Play Music but in December of 2020 YT Music took over the music duties for the company. In 2023 YT Music absorbed podcasts from Google Podcasts which brings us to where we are now. For the sake of time I am only going to mention the podcast function within the app/service. What does YouTube Music offer? YT Music is a real basic podcast player that has got the essentials right. The service offers podcasts that are available on the service and the option to add podcasts via an RSS feed. Podcasts can also be downloaded, playback speed can be adjusted, audio/video switching (YT Music podcasts only), sleep timer, trim silence (new), and background play without the need for a YT Music subscription.  There is also library support to manage your collection of podcasts, a dedicated podcast section and search and recommendation for podcast...

Are we set to see new entry level Pixel Buds at Google I/O?

  I'm not one to start a Google rumor but I have to do it this time. Looking at the Google Store website this evening I noticed that the Pixel Buds A series are all but out of stock except for the Sea color way. This lines up perfectly with Google I/O being just around the corner. The Pixel Buds A are coming up on their four year anniversary in June so a refresh is definitely needed.  I'm actually hoping Google gets rid of the A series line and make a slightly more premium version with features similar to the Pixel Buds Pro 2s. Of course Google will save some features just for the pros, however, they can add multi point and better battery life just to name a couple of much needed upgrades. I guess we will have to wait and see what Google's plans really are.

I attended a Pixel Superfans event at the new Google Store in Santa Monica, CA

Last Friday, I had the opportunity to attend a Pixel Superfans event at the new Google Store in Santa Monica. It was a soft launch of the store and a good way to meet like minded people. The staff were very nice and helpful. While I was at the store I was able to finally check out the Pixel 9 Pro Fold and wow that device is extremely impressive. Outside of that, I was able to look around the store and check out other Google products which there are quite a bit to see. I'm looking forward to my next visit to the new Google Store. Take a look at the pictures below including one of some swag I got from Google at the event.