title: How can I resolve "Locmanager"?
body: <p>I have a problem with this code:</p>
  
  <pre><code>boolean gpsStatus = locmanager.isProviderEnabled(LocationManager.GPS_PROVIDER);
  if (!gpsStatus) {
      Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, "network,gps");
  }
  </code></pre>
  
  <p>I found it here: <a href="https://stackoverflow.com/a/10004614/2628458">https://stackoverflow.com/a/10004614/2628458</a>
  I tried to switch "locmanager" with "LocationManager" and it has not worked. It says: "Cannot make a static reference to the non-static method isProviderEnabled(String) from the type LocationManager."</p>
  
  <p>How can I fix this problem?</p>