In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how Android Q allows users to manage location permissions gracefully. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can gain something according to this article.
The app can use location data to bring Android users a wonderful and rich mobile experience, such as searching for nearby food, tracking running distances, driving navigation, and so on. However, location data is also one of the highly sensitive personal information. We want to provide a simple and easy-to-understand control mode for users to manage the location data shared with applications. Therefore, with the release of Android Q, we give users more location control and hand over these controls to users. We are happy to see developers spread their creativity and ingenuity to create an excellent location experience, and at the same time, we hope to do everything we can to help you make a smooth transition to the new location management model.
In the past, users had only two choices on location permissions, that is, to allow or deny application access to the device location, and once granted, the permission did not change with the change of the application state (entering or exiting the use state). Android Q adds an option that allows users to choose to share location information with the application only during the use of the application, that is, when the application is running in the foreground. This means that Android Q users can manage location permissions in three ways:
Always allow: applications can obtain location information at any time
Allowed only during use: the application can only obtain location information when it is used
Reject: the application cannot obtain the location information of the device
Some apps and functions need to access the location of the device only when they are in use. For example, if a user tries to search a nearby restaurant, the app only needs to get the location of the device when the user opens the app and searches.
But the scenarios of other applications are slightly different, and they still need to be positioned continuously, even during non-use periods. For example, some applications can automatically record mileage for users and help them file tax returns without user participation.
Under the new location management mode, users can decide the period of time during which devices share location data, while preventing applications from obtaining unnecessary location information. When you apply a request for access, the screen pops up the dialog box shown in the figure, showing the user the new permission options. Users can click to set the → application permission of → location information and change the access permission of the application at any time.
Easy to get started with
We are well aware that these changes may affect your application. We respect the developer community very much, and our goal is to treat all such changes carefully, so we will help developers deal with the new location management from the following two aspects:
Introduce features that have an impact on developers in the Q Beta version, allowing you plenty of time to make necessary updates to the application.
Release more learning resources, such as developer blogs, developer guides and privacy lists, to provide you with more details.
If the target platform (targetSdkVersion) of the application is Android Q and contains features that require "always" access to the current location of the device, please add new ACCESS_BACKGROUND_LOCATION permissions in the manifest file. If the target platform of the application is Android 9 (API level 28) or earlier, when you request ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION, the system automatically adds ACCESS_BACKGROUND_LOCATION permissions to the application. In order to maintain a good user experience, please carefully design the application to ensure that the application properly handles the situation of limited permissions, that is, the device location cannot be accessed from the background or the location information cannot be obtained at all.
If users know why the application requires appropriate permissions, they will be more likely to accept permission requests. In addition, for features that need to be granted to use, be sure to choose the appropriate time to request according to the specific scenario: when users enable the feature or interact with it, if they are searching nearby content, then initiate a request. You avoid requesting too many permissions, that is, if a feature in the application only requires "during use" permission, there is no need to request "always allow" permission.
After reading the above, do you have any further understanding of how Android Q allows users to manage location permissions gracefully? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.