New Android R Important ChangesReview of the new Android R features and changes
First of all, we want to note that here we will not analyze all the innovations and changes, but we will turn to the most important ones, in our opinion, so if you don’t find something, write in the comments. Well, now let’s get started!
Camera and Microphone on the foreground more protected for userSince Android 9 you were available to use a camera and microphone only in the foreground. Now starting from Android 11, you need to write service type into your manifest file like in the code snippet below. By the way, this restriction will work only for Android 11 now, so Google will give extra time for developers for adapting to this change.
AsyncTask deprecatedStarting from this version of the Android async task will be deprecated. Async task is used to do short running operations on the background thread, and publish results on UI Thread. Android advice to use the
Wi-Fi suggestion APIDevices running Android 10 and higher allow your app to add network credentials for a device to auto-connect to a Wi-Fi access point. You can supply suggestions for which network to connect to using
By the way, you should know that if the user uses the Wi-Fi picker to explicitly disconnect from one of the network suggestions when connected to it, then that network is blacklisted for 24 hours. During this time, that network will not be considered for auto-connection, even if the app re-adds the network suggestion corresponding to the network.
Concurrent use of more than one cameraAndroid 11 adds APIs to query support for using more than one camera at a time, including both a front-facing and a rear-facing camera.
Reading phone numbers permission changedIf your app targets Android 11 and needs to access the phone number API methods
New WiFi scan as a replacement for Deprecated oneProbably one of the main innovations for us is the replacement of the old WiFi scan, which was deprecated in API 28. At the moment, the documentation for scanning the wifi is not updated and new restrictions are not written. But these limitations will definitely exist, and there is still no complete information on how the new scan will work. However, you can already see what they are and how to use them.
Now you need to register the scan results callback instead of start scan, pass there new ScanResultsCallback class element. You should override its
ConclusionThe release of the new version of Android is scheduled for the near future, although it is already possible to test all the possible functionality, and most of the new functionality is documented. It is also worth noting that it is already possible to test new functionality if you have a new version of Android Studio with a version higher than 4. Of course, we described a very small part of the new changes and new functionality, there are a lot of new features and possible limitations that we have not yet noticed. Howbeit, we will have to take these changes into account and adapt to them. Feel free to write your opinions and recommendations. Thanks to Il Kadyrov!
Android News
droidcon News
Tech Showcases, Developer Resources & Partners
EmployerBrandingHeader
jobs.droidcon.com
![]() Latest Android Jobs
Kotlin Weekly
![]() Your weekly dose of Kotlin
ProAndroidDev
![]() Android Tech Blogs, Case Studies and Step-by-Step Coding
Zalando
![]() Meet one of Berlin's top employers
Academy for App Success
![]() Google Play resources tailored for the global droidcon community |
Droidcon is a registered trademark of Mobile Seasons GmbH Copyright © 2020. All rights reserved.