title: Enabling Location mode High Accuracy or Battery saving, programmatically, without user needing to visit Settings
body: <p><strong><em>Why i ask this:</em></strong>(also the reason for trying it in an app)   </p>
  
  <p><strong>It happens</strong> when we use <strong>Google Maps in Lollipop</strong>. <em>Even if the Location is disabled, it is turned on, in high accuracy mode after user's input from the Maps app, without having to visit Settings.</em>    </p>
  
  <p>A similar functionality can be achieved for enabling Bluetooth, where the action is initiated in my app; user needs to make a choice but user is not redirected to Settings, using:  </p>
  
  <p><code>startActivity(new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE));</code>  </p>
  
  <p>which could be found on <a href="http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#ACTION_REQUEST_ENABLE" rel="noreferrer">BluetoothAdapter</a>, now we know there is no LocationAdapter, so i looked around <a href="https://developer.android.com/reference/com/google/android/gms/location/LocationServices.html" rel="noreferrer">gms->LocationServices</a>, basically almost everything under <a href="https://developer.android.com/reference/com/google/android/gms/location/package-summary.html" rel="noreferrer">Location API references</a>, <a href="https://developer.android.com/reference/android/location/LocationManager.html" rel="noreferrer">android.location.LocationManager</a> but doesn't seem anything like <code>ACTION_REQUEST_ENABLE</code> is available as yet.  </p>
  
  <p>Hope there is some other method for the same, and more people have tried it.</p>
  
  <p>Please note:<br>
  <code>context.startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));</code> does not work like that.   </p>