Google immediately launched the second Android 11 developer preview with hinge angle detection help, name screening enhancements, and new ops within the Neural Networks API. You can obtain Android 11 DP2 now from developer.android.com — when you have the earlier preview, Google may even be pushing an over-the-air (OTA) replace. The launch features a preview SDK with system photographs for the Pixel 2, Pixel 2 XL, Pixel 3, Pixel Three XL, Pixel 3a, Pixel 3a XL, Pixel 4, and Pixel Four XL, in addition to the official Android Emulator.

Google launched Android 11 DP1 in February, the earliest Android developer preview it has ever launched. Last yr, Google used the Android Beta Program, which helps you to get early Android builds by way of over-the-air updates on choose gadgets. This yr, nevertheless, Google isn’t making the primary previews accessible as betas (you’ll must manually flash your machine). In different phrases, Android 11 isn’t prepared for early adopters to attempt, simply builders. Like DP1, Android 11 DP2 is simply accessible on eight Pixel telephones. That’s a tiny slice of the over 2.5 billion month-to-month energetic Android gadgets — the principle cause builders are desirous to see what’s new for the platform within the first place. Google will seemingly launch Android 11 to extra telephones in DP3 or by the primary beta. To assist Google preserve the previews coming, you possibly can give feedback and report bugs here.

Android 11 DP1 introduced 5G experiences, individuals and conversations enhancements, Neural Networks API 1.3, privateness and security measures, Google Play System updates, app compatibility, connectivity, picture and digital camera enhancements, and low latency tweaks. DP2 builds on these with a number of notable additions.

Android 11 DP2 options

Here’s the rundown of the brand new options added as a part of Android 11 Developer Preview 2:

  • 5G state API: This API allows you to examine whether or not the consumer is at the moment on a 5G New Radio or Non-Standalone community. You can use this to spotlight your app’s 5G expertise or branding when the consumer is related. You can use this API along with the 5G dynamic meteredness API and bandwidth estimator API, in addition to existing connectivity APIs.
  • Hinge angle for foldables: This API allows you to get the angle of the machine display screen surfaces by way of an accessible hinge angle sensor. Apps can question the sensor instantly or by a brand new AndroidX API for the exact hinge angle.
  • Call screening service enhancements: New APIs can now assist customers handle robocalls. In addition to verifying an incoming name’s STIR/SHAKEN status as a part of its name particulars, call-screening apps can report a name rejection cause, and with permission they will see whether or not a name is to/from a quantity within the consumer’s contacts. Apps can even customise a system-provided post call screen to let customers carry out actions resembling marking a name as spam or including to contacts.
  • New ops and controls in Neural Networks API: Activation capabilities management the output of nodes inside a neural community. Google AI found a swish activation function for sooner coaching time and better accuracy throughout all kinds of duties. A computationally environment friendly model of this operate, the hard-swish op, is now constructed into Android 11. The new Control ops additionally allows extra superior machine studying fashions that help branching and loops. New execution controls make it easier to reduce latency for widespread use instances: Asynchronous Command Queue APIs cut back the overhead when working small chained fashions.
  • Foreground service sorts for digital camera and microphone: If your app desires to entry digital camera or microphone knowledge from a foreground service, you now want so as to add the foregroundServiceType worth to your manifest.
  • Scoped storage updates: Improvements and adjustments to guard app and consumer knowledge on exterior storage, resembling help emigrate recordsdata from the legacy mannequin to the brand new scoped storage mannequin, and higher administration of cached recordsdata.
  • Synchronized IME transitions: A brand new set of APIs allow you to synchronize your app’s content material with the IME (enter methodology editor) and system bars as they animate on and offscreen. For frame-perfect transitions, a new insets animation listener notifies apps of per-frame adjustments to insets whereas the system bars or the IME animate. Additionally, apps can take management of the IME and system bar transitions by the WindowInsetsAnimationController API.
  • Variable refresh rate: Apps and video games can now set a most popular body fee for his or her home windows. Most Android gadgets refresh the show at 60Hz refresh fee, however some gadgets help a number of refresh charges, resembling 90Hz in addition to 60Hz, with runtime switching. On these gadgets, the system makes use of the app’s most popular body fee to decide on the very best refresh fee for the app. The API is out there in each the SDK and NDK.
  • Resume on reboot: Android 11 improves the expertise of scheduled in a single day over-the-air software program updates. With resume on reboot, apps at the moment are in a position to entry Credential Encrypted (CE) storage after the OTA reboot, with out the consumer unlocking the machine. This means apps can resume regular operate and obtain messages instantly. Apps can nonetheless help Direct Boot to entry Device Encrypted (DE) instantly in spite of everything kinds of reboot.
  • Camera help in Emulator: The Android emulator now helps back and front emulated digital camera gadgets. The again digital camera helps Camera2 API HW Level 3 (consists of YUV reprocessing and RAW seize). It’s a completely CTS-compliant LEVEL_3 machine that you should use to check superior options like ZSL and RAW/DNG help. The entrance digital camera helps FULL stage with logical digital camera help (one logical machine with two underlying bodily gadgets). This digital camera emphasizes logical digital camera help, and the bodily digital camera gadgets embody slender and broad area of view cameras.

Preview/Beta schedule

After you’ve flashed Android 11 onto your machine or fired up the Android Emulator, you’ll wish to replace your Android Studio atmosphere with the Android 11 Preview SDK (set up guide). Then set up your present manufacturing app and take a look at all the consumer flows. For a whole rundown on what’s new, examine the API overview, API reference, and behavior changes.

Google launches Android 11 Developer Preview 2 with foldable, call screening, and Neural Networks API improvements

The aim of the developer previews is to let early adopters and builders play with the construct early to allow them to discover new options and APIs for apps, take a look at for compatibility, and give feedback. Normally, extra particulars could be shared throughout Google’s developer convention in May, however on condition that occasion has been canceled, Google will seemingly regulate the way it reveals extra data. Either means, anticipate extra new options and capabilities in subsequent previews and betas.

Google launches Android 11 Developer Preview 2 with foldable, call screening, and Neural Networks API improvements

Last yr, there have been six betas. This yr, there will probably be three developer previews and three betas. Here’s the preview/beta schedule for Android 11:

  • February: Developer Preview 1 (Early baseline construct targeted on developer suggestions, with new options, APIs, and conduct adjustments.)
  • March: Developer Preview 2 (Incremental replace with further options, APIs, and conduct adjustments.)
  • April: Developer Preview 3 (Incremental replace for stability and efficiency.)
  • May: Beta 1 (Initial beta-quality launch, over-the-air replace to early adopters who enroll in Android Beta.)
  • June: Beta 2 (Platform Stability milestone. Final APIs and behaviors. Play publishing opens.)
  • Q3: Beta 3 (Release candidate construct.)
  • Q3: Final launch (Android 11 launch to AOSP and ecosystem.)

Google is asking builders to make their apps appropriate with Android 11 in order that their customers can anticipate a seamless transition after they improve. “We recommend doing the work early, so you can release a compatible update by Android 11 Beta 1,” Google VP of engineering Dave Burke wrote immediately. “This lets you get feedback from the larger group of Android 11 Beta users.”