Preview Android 11 from the developer perspective

Tram Ho

As expected, Google will launch Android 11 trial operating system in May and the official version at the end of 2020.

Timeline as Google notices here:

But from now on you can also experience Android 11 as long as you have Pixel 2, 3, 3a or 4 devices and follow the instructions here ( manual download and flash only )

In this article, we will introduce new features that will be available in Android 11

New experiences

5G state API – DP2 with the addition of 5G state API will allow you to check if users are using 5G mobile network or Non-Standalone network. You can use this to increase your app’s 5G experience and network speed when users are connected. You can use this API along with the dynamic meteredness API and bandwidth estimator API , as well as existing connectivity APIs, to take advantage of the new speeds and improvements of 5G networks.

Hinge angle for foldables The top requirement for foldable (foldable) devices is the API for taking corners of device screen surfaces. Android 11 now supports hinge angle sensors that allow applications to query directly or through the new AndroidX API for accurate hinge angles, to create an adaptive experience for foldables devices (such as Samsung Galaxy Fold, Microsoft Surface Duo , Huawei Mate X)

Call screening service improvements To help users manage robocalls , Android 11 has added an API to allow call screening applications to do more to help users. In addition to verifying the STIR / SHAKEN status of an incoming call (standards for protection against caller ID fraud) as part of the call details, call screening applications may report the reason for the rejection. call. The application can also customize the call screen provided by the system to allow users to perform actions such as marking calls as spam or adding to contacts.

Controls in Neural Networks API improves and optimizes applications that use machine learning and AI (see more here ).

Privacy and security

Android 11 has added a number of features to help keep users safe and increase transparency and control.

Foreground service types for camera and microphone in Android 10 introduced the foregroundServiceType attribute in the manifest file as a way to help ensure accountability for specific use cases, as well as increase the security of user information. Now, in Android 11 has added two new types – camera and microphone . If your application wants to access camera or microphone data from the Foreground service, you need to add the foregroundServiceType value to the application’s manifest file.

Scoped storage updates For the purpose of better protection of user data and applications on external storage (external storage). In this release, improvements and changes have been made, such as support for moving files from legacy models to scoped storage models and better managing cached files. Read more here for more improvements in this Android 11 update.

Polish and quality

Synchronized IME transitions A new API set that allows you to synchronize the application’s content with IME (short for input method editor or simply soft keyboard ) and system bars as they work on and off the screen, helping to Easily create natural, intuitive and no shock. In addition, applications can control IME and switch the system bar through the WindowInsetsAnimationControll API.

As the picture below:

Variable refresh rate Currently most Android devices refresh the screen at 60Hz, but some devices support different speeds such as 90Hz as well as 60Hz, with runtime conversion. On these devices, the system uses the preferred frame rate of the application to select the best refresh rate for the application. API is available in both SDK and NDK. See details here .

Camera support in Emulator The Android emulator currently supports front and rear camera devices. With this camera simulator support, you can build and experiment with any camera feature added in Android 11.

Above do some new features in Android 11 this time

Ref:

https://developer.android.com/preview

https://android-developers.googleblog.com/

https://www.androidauthority.com/android-11-features-1085228/

Share the news now

Source : Viblo