title: Launch the new "Scanning" settings activity on Android Marshmallow
body: <p>The goal is to programmatically get to the Settings activity in Android that controls the option that used to be "Wi-Fi scanning always available" in the Advanced Wi-Fi settings prior to Android M. I used to get to this activity as follows:</p>
  
  <pre><code>startActivity(new Intent(Settings.ACTION_WIFI_IP_SETTINGS));
  </code></pre>
  
  <p>The setting has now moved under Settings -> Location -> Scanning (overflow menu). There doesn't seem to be a constant defined under Settings for the new page. How can I get the user to this new screen from my app?</p>
  
  <p>I found the relevant preference fragment at com.android.settings.location.ScanningSettings.java. I think it's used by SettingsActivity to launch this preference panel?</p>
  
  <p><a href="https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/location/ScanningSettings.java" rel="nofollow">https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/location/ScanningSettings.java</a></p>