Replace Android Q Beta 2
Posted by Dave Burke, VP of Engineering
A couple of weeks in the past, we launched Android Q Beta, a preview of the upcoming model of Android. Along with the brand new privateness options for customers, Android Q provides new options to builders: enhancements for foldable apps, new APIs for connectivity, new multimedia codecs and digital camera options, NNAPI extensions, Vulkan 1.1 graphics, and so forth.
This system of the primary open Android previews is predicated on our basic philosophy of openness and collaboration with our group. Your feedback since Beta 1 as soon as once more show the worth of this openness – it has been sturdy, clear and extremely worthwhile. You've despatched us 1000’s of bug reviews, giving us directional data and suggestions, modifying our plans to enhance the platform for customers and builders. We take your feedback to coronary heart, so keep tuned. We’re lucky to have such a passionate group to information Android Q to the ultimate product later this 12 months.
In the present day we’re releasing Android Q Beta 2 and an up to date SDK for builders. It consists of the most recent bugfixes, optimizations and API updates for Android Q, in addition to the safety patches of April 2019. Additionally, you will discover that remoted storage turns into extra essential as we search your assessments and your extra normal feedback to assist us refine this characteristic.
We’re nonetheless initially of the beta model with Android Q, so count on some limits! Earlier than continuing with the set up, test identified points. Particularly, count on the same old transition issues with functions that we usually encounter early within the beta interval as builders put together their updates. For instance, you’ll have issues with functions that entry photographs, movies, media recordsdata, or different recordsdata saved in your gadget, reminiscent of when searching or sharing in social media functions.
You may get the beta 2 at this time by registering any pixel gadget right here. When you're already registered, look ahead to the upcoming beta 2 replace. Keep tuned for extra data on Google I / O in Might.
What's new in Beta 2?
Privateness options for assessments and feedback
As we shared it throughout the beta 1, we’re investing closely in privateness safety in Android Q, along with the work we’ve got performed in earlier releases. Our objectives are to enhance transparency, give customers extra management, and additional safe private knowledge on the platform and functions. We all know that to attain these objectives, we should collaborate with you, our software builders. We perceive that supporting these options can also be an funding for you. We are going to do all the pieces attainable to attenuate the affect in your functions.
For options like Scoped Storage, we share our plans as quickly as attainable to present you extra time to check and provides us suggestions. To generate extra normal feedback, we’ve got additionally enabled Scoped Storage for brand spanking new software installations in Beta 2 so as to extra simply see what’s affected.
With Scoped Storage, functions can use their personal sandbox with out permission, however they want new permissions to entry shared collections of photographs, movies, and sound. Functions that use recordsdata in shared collections (for instance, picture and video galleries, selectors, media navigation, and doc storage) might behave in a different way underneath Restricted Storage.
We suggest that you simply get began rapidly with Scoped Storage – the Developer's Information comprises detailed data on managing key use circumstances. For testing, make certain to allow Scoped Storage in your software with the assistance of the adb command. When you uncover that your software has a use case that isn’t supported by Scoped Storage, please tell us by responding to this brief survey. We admire the superb feedback you will have already given us. It is a worthwhile assist for the event of this characteristic.
Bubbles: a brand new option to do many issues directly
In Android Q, we add a platform assist for bubbles, a brand new approach for customers to multitask and get again in contact along with your apps. Varied functions have already created comparable end-to-end interactions, and we’re delighted to convey the most effective of them to the platform, whereas contributing to the coherence of interactions, the safety of confidentiality customers, decreasing growth time and innovation.
The bubbles will enable customers to carry out a number of duties concurrently they transfer from one exercise to the opposite.
Bubbles assist customers prioritize data and act in depth in one other software, whereas sustaining their present context. Additionally they enable customers to take with them the performance of an app once they swap from one exercise to a different on their gadget.
Bubbles are nice for messaging as a result of they permit customers to maintain essential conversations at their fingertips. Additionally they present a handy view of present duties and updates, reminiscent of cellphone calls or arrival instances. They will present fast entry to a conveyable consumer interface, reminiscent of notes or translations, and may also be visible reminders of duties.
We created bubbles above the Android notification system to offer builders with a well-known and simple to make use of API. To ship a balloon through a notification, you need to add a BubbleMetadata by calling setBubbleMetadata. Within the metadata, you’ll be able to point out that the exercise is displayed as content material within the balloon, with an icon (disabled in Beta 2) and the related individual.
We’re simply beginning to use bubbles, however strive them out and inform us what you assume. You’ll find an instance of implementation right here.
Because the ecosystem evolves quickly to foldable units, new use circumstances are opening up in your functions to make the most of these new screens. With Beta 2, you’ll be able to create collapsible units with enhanced assist for the Android Q platform, together with a brand new collapsible gadget emulator, accessible as an Android digital gadget in Android Studio three.5 accessible within the canary diffusion channel.
7.three "foldable AVD switches between folded and unfolded states
On the platform facet, we’ve got made various enhancements in onResume and onPause to assist a number of resumes and to inform your app when it’s energetic. We’ve got additionally modified the operation of the resizeableActivity manifest attribute that will help you handle the show of your software on foldable and huge screens. You may learn extra within the Developer's Information
To arrange a runtime atmosphere in your software, now you can configure a collapsible emulator as a digital gadget (AVD) in Android Studio. The Foldable AVD is a reference gadget that lets you check normal configurations, behaviors, and circumstances as they are going to be utilized by our gadget producers companions. To make sure compatibility, the AVD complies with CTS / GTS necessities and CDD compliant fashions. It helps runtime configuration modifications, a number of resumes, and new resizeableActivity behaviors.
Use the canary model of Android Studio three.5 to create a collapsible digital gadget that helps considered one of two configurations: 7.three "(four.6" folded) and eight "(6.6" folded) with Beta 2. In every configuration, the emulator controls the display screen to set off the fold / unfold, change the orientation and fast actions.
Android Studio – AVD Supervisor: Foldable Gadget Configuration
Strive at this time your collapsible emulator software by downloading the canary model of Android Studio three.5 and configuring a collapsible AVD file utilizing the Android Q Beta 2 system picture.
Improved sharing sheet
After the preliminary shortcut sharing APIs for Beta 1, now you can preview shared content material by offering an additional EXTRA_TITLE for the aim of the title or by setting the clipData of intent for a thumbnail picture. See the up to date software instance for the main points of the implementation.
Directional and zoomable microphones
Android Q Beta 2 provides apps extra management over audio seize through a brand new MicrophoneDirection API. You need to use the API to specify a most well-liked course of the microphone when making an audio recording. For instance, when the consumer takes a video "selfie", you’ll be able to ask the microphone from the entrance for audio recording (if it exists) by calling setMicrophoneDirection (MIC_DIRECTION_FRONT).
As well as, this API introduces a standardized option to management zoom microphones, permitting your software to manage the dimensions of the recording discipline with the assistance of setMicrophoneFieldDimension (float).
Compatibility through public APIs
In Android Q, we proceed our long-term efforts to maneuver functions to make use of solely public APIs. We’ve got launched many of the new restrictions in Beta 1 and are bringing some minor updates to those lists in Beta 2 to attenuate the affect on apps. Our aim is to offer public different APIs for legitimate use circumstances earlier than proscribing entry. So, if an interface you’re presently utilizing in Android 9 Pie is now restricted, you need to request a brand new public API for that interface.
Begin with Android Q Beta
In the present day 's replace consists of Beta 2 system pictures for all Pixel units and the Android emulator, in addition to up to date SDK and developer instruments. These supply all the pieces it’s good to begin testing your functions on the brand new platform and construct with the most recent APIs.
First, make certain your app is appropriate and provides your customers a seamless transition to Android Q, together with your customers presently collaborating within the Android Beta program. To get began, simply set up your present app from Google Play on a tool or emulator working Beta 2, after which observe the consumer feeds. The appliance ought to work and look nice, and correctly deal with the habits modifications of Android Q for all functions. You probably have issues, we suggest that you simply repair them within the present software with out altering your focusing on degree. See the migration information for steps and a really helpful timeline.
With essential privateness options that may have an effect on your functions, we suggest that you simply begin testing instantly. Particularly, you'll wish to check goal storage, new location permissions, background exercise restrictions, and gadget ID restrictions. See the Privateness Guidelines as a place to begin.
Then replace the targetSdkVersion of your software to 'Q & # 39; as quickly as attainable. This lets you check your software with all of the safety features and privateness of Android Q, in addition to with every other behavioral change of functions focusing on Q.
Discover new options and new APIs
While you're prepared, dive into Android Q and uncover the brand new options and APIs that you need to use in your apps. Here’s a video introducing many modifications for builders in each beta 1 and beta 2. Take a look at the Variations API report for a preview of the modifications made in Beta 2 and take a look at the reference of the Android Q Beta API for extra particulars. Go to the Android Q Beta growth web site for extra sources, together with launch notes and how you can report points.
To compile with Android Q, obtain the Android Q Beta SDK and instruments in Android Studio three.three or later, and comply with the directions under to arrange your atmosphere. If you wish to use the most recent fixes for Android Q-related modifications, we suggest that you simply use Android Studio three.5 or later.
How can I get the beta 2?
It's easy – you’ll be able to join right here to get Android Q Beta updates reside, on any Pixel gadget (and this 12 months we assist the three-generation Pixel – Pixel three , Pixel 2 and even the unique Pixel!). In case you are already registered, you’ll quickly obtain the replace of the beta 2, no motion is required from you. Downloadable system pictures are additionally accessible. When you do not need a pixel gadget, you need to use the Android emulator. Simply obtain the most recent pictures from the emulator system through the SDK Supervisor of Android Studio.
As at all times, your contribution is important. Please tell us what you assume. You need to use our hotlists for platform points (together with privateness and habits modifications), software compatibility points, and third-party SDK points. You’ve got shared some wonderful feedback with us to date and we’re engaged on integrating as a lot as attainable into the subsequent beta.