title: How to check if wifi location service is on...?
body: <p>I am working on an application that uses the location of the user.</p>
  
  <p>I can successfully ask the user for wifi and gps enable.
  As you know you can have WiFi on but prevent it from providing your location.</p>
  
  <p>The thing is i want to ask the user to enable the wifi location obtain service if it is disabled. I use a wifi manager for wifi and a LOCATION_PROVIDERS_ALLOWED for GPS.And both work great.</p>
  
  <pre><code>//provider variable code
  String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);
  
  
  
  //i use the string into an if statement
  if (!provider.contains("gps")){ 
  
  }
  </code></pre>
  
  <p>And i understand that i can get enabled providers into a variable separated with comma.
  It works great..but "gps" is the name for GPS but what is the name for WiFi into the string???</p>