[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Test your app's location workflows\n\nThe guidelines on this page help you evaluate your app as you make updates to\nsupport the latest location features and behavior.\n\nTest how your app handles approximate location\n----------------------------------------------\n\nTo evaluate whether you need to update your app to support user-configurable\nlocation accuracy, complete the tests described in this section.\n\n### Handle approximate location request from dialog\n\nTo check how your app handles a user's request for your app to have approximate\nlocation access from the dialog, do the following:\n\n1. Request both `ACCESS_FINE_LOCATION` and `ACCESS_COARSE_LOCATION`.\n2. In the dialog that appears, where the user can [request approximate\n location](/training/location/permissions#approximate-request), select **Approximate** near the top, and either **While using the app** or **Only this\n time** near the bottom.\n3. Check whether your app's use cases still work as expected, even when your app only has approximate location access.\n\n### Handle approximate location downgrade from system settings\n\n**Figure 1.** An app's location permissions screen in system settings includes **Use precise location**. This option is independent from the location access settings that appear closer to the top of the screen.\n\nTo check how your app handles a user's request to change your app's location\naccess from precise to approximate in system settings, do the following:\n\n1. Request both `ACCESS_FINE_LOCATION` and `ACCESS_COARSE_LOCATION`.\n2. In the dialog that appears, where the user can [request approximate\n location](/training/location/permissions#approximate-request), select **Precise** near the top, and either **While using the app** or **Only this\n time** near the bottom.\n3. Navigate to your app's permissions screen in system settings.\n4. On the location permission screen, turn off **Use precise location** . This\n option appears in figure 1.\n\n As with any permission downgrade, the system restarts your app's process.\n5. Check whether your app's use cases still work as expected, even when your app\n only has approximate location access.\n\n### Handle precise location upgrade from system settings\n\nTo check how your app handles a user's request to change your app's location\naccess from approximate to precise in system settings, do the following:\n\n1. Request both `ACCESS_FINE_LOCATION` and `ACCESS_COARSE_LOCATION`.\n2. In the dialog that appears, where the user can [request approximate\n location](/training/location/permissions#approximate-request), select **Approximate** near the top, and either **While using the app** or **Only this\n time** near the bottom.\n3. Navigate to your app's permissions screen in system settings.\n4. On the location permission screen, turn on **Use precise location** , as shown\n in figure 1.\n\n Because this permission change is an *upgrade*, the system doesn't restart\n your app.\n5. Check whether your app receives more accurate location data in its\n location-based use cases."]]