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

Bellroy Lite Daypack | The backpack for all day trips

The lightest backpack I ever used is also one of the toughest and most durable too. In this video, I give you a tour of Bellroy's Lite Daypack and how it may fit into your life. So far I have enjoyed the backpack and it has become my go to long trip companion. Check out the video for more.  

Samsung Tab S7 | Long term review (Video)

With the Samsung Tab S8 just around the corner, I thought now would be a good time to share my thoughts and experience with the Samsung Tab S7. Samsung got so much right with the Tab S7 but I do have some nitpicks. Check out the video for more

Shouts out to the YT Music team

  I must admit, I was a bit of a skeptic when Google announced that Google Play Music was going away in favor of Youtube Music awhile back. Then I remember when Google said that your music library will be transferred over from GPM to YTM. I immediately thought, oh no. How can this be done without error for millions of users? Yet they seemed to have pulled it off. I had no issues with transferring my music over and everything was there right where I left it in GPM.  If you haven't already I suggest making the switch and transferring your music from GPM to YTM if you intend to. Google gave notice to it's GPM users that you will no longer be able to make transfers after February 24th, 2021. Making the transfer is easy and is done in the background. Check out the community post here . As far as features and how YTM compares to GPM I would say that it's pretty much on par. For me, the main features are there and I like how the improvements YTM has over GPM. The cool thing is tha