title: Launch Location Settings intent from preferences XML file
body: <p>I want to launch System's Location Settings from an <code>Intent</code>. I know that programmatically it goes like this</p>
  
  <pre><code>Intent viewIntent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
  startActivity(viewIntent);
  </code></pre>
  
  <p>but I need to do it from the XML of a <code>Preference</code>. I try like this</p>
  
  <pre><code>&lt;Preference
      android:title="@string/pref_title" &gt;
      &lt;intent android:action="android.settings.ACTION_LOCATION_SOURCE_SETTINGS" /&gt;
  &lt;/Preference&gt;
  </code></pre>
  
  <p>but it does not work, I always get an <code>ActivityNotFoundException</code>. How can I launch that System Location Settings from an XML Intent?</p>