title: LocationManager gives NETWORK_PROVIDER disabled
body: <p>I need to retrieve user's location by 3G or WIFI.</p>
  
  <p>This is what I'm trying to do:</p>
  
  <pre><code>LocationListener locationListener = new LocationListener() {
              public void onLocationChanged(Location location) {
                  manageLocation(location);
              }
  
              public void onStatusChanged(String provider, int status, Bundle extras) {
  
              }
  
              public void onProviderEnabled(String provider) {
  
              }
  
              public void onProviderDisabled(String provider) {
  
              }
          };
          locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
  </code></pre>
  
  <p>The problem is that the only callback that is called is <code>onProviderDisabled</code> giving <code>LocationManager.NETWORK_PROVIDER</code> as parameter.</p>
  
  <p>I've got that permission in the manifest:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  </code></pre>
  
  <p>How can I enable that type of location in my application?</p>