Posted by Dave Burke, VP of Engineering
Every month we’re bringing Android 12 nearer to its remaining kind, with revolutionary options, a brand new UI that adapts to you, efficiency enhancements, privateness enhancements, safety advantages, and rather more. A lot of you might be already creating and testing on Android 12 by way of our Beta program – thanks for the entire suggestions you’ve shared to date!
There’s nonetheless quite a bit to do to land this launch, although, and immediately we’re pushing out the third Beta of Android 12 so that you can attempt. Together with updates like scrolling screenshots, privateness indicator APIs, and enhanced auto-rotate, Beta 3 additionally contains the ultimate Android 12 APIs and the official SDK. WIth these, you can begin testing and updating your app forward of Platform Stability, arising subsequent at Beta 4. Now could be the time to ensure your apps are prepared!
You will get Beta 3 immediately in your Pixel gadget by enrolling here for over-the-air updates, and in case you beforehand enrolled, you’ll robotically get immediately’s replace. You can even get Android 12 Beta 3 on choose units from a number of of our device-maker companions like Sharp and TCL – be taught extra at android.com/beta. Go to the Android 12 developer site for particulars on the way to get began.
What’s new in Beta 3?
Beta 3 contains quite a lot of updates to enhance performance, consumer expertise, and efficiency. Listed here are just a few highlights.
Scrolling screenshots – To make it simpler to seize and share scrolling content material, we’re including scrolling screenshots. Beginning in Beta 3, when customers seize a screenshot of content material that’s scrollable, they’ll now see a “Seize extra” button to increase the screenshot to the total content material and so they can then regulate the crop.
Capturing a scrolling screenshot within the Settings app
Scrolling screenshots work out-of-the-box for many apps — in case your app makes use of a normal View-based UI, no adjustments must be wanted. For apps and UI toolkits that aren’t utilizing View-based UI or that use extremely personalized UI, we’re introducing a brand new ScrollCapture API to assist scrolling screenshots. With this API, the system notifies your app of scroll seize requests and supplies a Floor so that you can draw your UI into. We’re persevering with to iterate on scrolling screenshots and in Beta 4 you’ll see enhancements to the default assist, reminiscent of for scrolling ListViews. We’re additionally working to supply assist for a greater variety of content material (reminiscent of internet content material). Tell us what you suppose!
On-device search – With Beta 3 we’re highlighting platform assist for AppSearch, a brand new high-performance on-device search engine. With AppSearch, apps can index structured information and search over it with built-in full-text search capabilities, and so they can use native options like highly-efficient indexing and retrieval, multi-language assist, and relevancy rating.
AppSearch is available in two flavors: a neighborhood index to your app to make use of that’s backward-compatible by way of a brand new AppSearch Jetpack library, and a central index that’s maintained for your entire system in Android 12 (and later releases). Once you take part within the central index, the system will be capable of show your app’s information on System UI surfaces until you select to choose out. Moreover, you may securely share information with different apps, permitting them to look your app’s information in addition to their very own. More here.
Privateness indicator APIs in WindowInsets – In Beta 2 we added assist for privateness indicators within the standing bar that present when an app is utilizing the gadget digicam or microphone. Because the indicators could be displayed when an app is in immersive mode and will doubtlessly cowl controls or content material, apps have to know the place the indications could be drawn and make any changes wanted to stop helpful content material from being lined. In Beta 3 we’ve added new privacy indicator APIs to
WindowInsets that allow you to get the utmost bounds of the indications and their relative placement on the display, taking into consideration the present orientation and language settings. More here.
Digital camera and microphone toggles configurable for enterprises – In Beta 2 we additionally launched new toggles that permit customers immediately flip off entry to the gadget microphone and digicam for all apps. We’ve now made these accessible to enterprise directors who can set any restrictions wanted on totally managed units. More here.
New permission for CDM-paired apps beginning foreground companies – To higher assist companion apps finishing up core performance whereas offering transparency to the system, apps paired with Companion Device Manager (CDM) can launch foreground companies from the background by declaring a brand new regular permission. More here.
Higher, quicker auto-rotate – We’ve enhanced Android’s auto-rotate function with face detection, utilizing the front-facing digicam to extra precisely acknowledge when to rotate the display. That is particularly useful for people who find themselves utilizing their units whereas mendacity down on a sofa or in mattress, for instance. For builders, which means that the auto-rotation conduct will present a greater consumer expertise for customers who’ve opted in by way of Settings. The improved auto-rotate function lives inside our lately introduced Private Compute Core, so photographs are by no means saved or despatched off the gadget. In Beta 3 this function is out there on Pixel 4 and later Pixel units.
To make display rotation as speedy as attainable on all units, we’ve additionally optimized the animation and redrawing and added an ML-driven gesture-detection algorithm. Consequently, the latency for the bottom auto-rotate function has been decreased by 25%, and the advantages of the face detection enhancement construct on prime of these enhancements. Give the auto-rotate enhancements a try to tell us what you suppose.
Android 12 for Video games – With Game Mode APIs, you may react to the gamers’ efficiency profile choice to your recreation – like higher battery life for an extended commute, or efficiency mode to get peak body charges. These APIs might be tied to the upcoming recreation dashboard which supplies an overlay expertise with fast entry to key utilities throughout gameplay. The sport dashboard might be out there on choose units later this yr.
Play as you obtain on Android 12 with Touchgrind BMX
In the meantime, play as you download will enable recreation property to be fetched within the background throughout set up, getting your gamers into gameplay quicker.
Go to the Android 12 developer site to be taught extra about the entire new options in Android 12.
Remaining APIs and SDK
Over the previous a number of weeks we have been working to finalize the Android 12 APIs and immediately we’re releasing them with Beta 3, together with the official API Stage 31 SDK. We plan to succeed in full Platform Stability at Beta 4, when all app-facing system behaviors and non-SDK interface restrictions may also be remaining, along with the API surfaces.
Should you’re compiling your app towards the Android 12 APIs, we suggest utilizing immediately’s launch to replace your setting and recompile your apps with the ultimate SDK and newest instruments.
With many early-adopter customers and builders getting Android 12 Beta on Pixel and other devices, now’s the time to ensure your apps are suitable and prepared for them to make use of!
To check your app for compatibility with Beta 3, simply set up the revealed model from Google Play or different supply onto a tool or emulator operating Android 12 Beta. Work by way of the entire app’s flows and look ahead to practical or UI points. Overview the behavior changes to focus your testing on areas the place underlying adjustments could have an effect on your app. There’s no want to vary your app’s
targetSdkVersion right now, so when you’ve resolved any points, we suggest publishing an replace as quickly as attainable to your Android 12 Beta customers.
As talked about earlier, Android 12 will attain Platform Stability within the subsequent launch, Beta 4. With Platform Stability, all app-facing system behaviors, SDK/NDK APIs, and non-SDK restrictions might be finalized. At the moment, you may start your remaining compatibility testing and launch a completely suitable model of your app, SDK, or library. Extra on the Android 12 timeline for builders is here.
Get began with Android 12!
Right now’s Beta launch has every thing you could attempt the most recent Android 12 options, take a look at your apps, and provides us feedback. Simply enroll any supported Pixel device to get the replace over-the-air. To get began creating, set up the Android 12 SDK.
You can even get Android 12 Beta 3 on units from a few of our prime device-maker companions like Sharp and TCL. Go to android.com/beta to see the total checklist of companions collaborating in Android 12 Beta. For even broader testing, you may attempt Android 12 Beta on Android GSI images, and in case you don’t have a tool you may take a look at on the Android Emulator.
Beta 3 can be out there for Android TV, so you may take a look at the most recent TV options and take a look at your apps on the all-new Google TV expertise. Attempt it out with the ADT-3 developer package. More here.
For full particulars on Android 12 Beta, go to the Android 12 developer site.