NETWORK_PROVIDER doesn't work in Galaxy Young?
<p>I have an application where I use <code>isProviderEnabled(LocationManager.NETWORK_PROVIDER</code>
But when I put this app in Samsung Galaxy Young, it always returns <code>false</code> even the  option <code>Packet Data</code> is enabled in Settings. </p>

<p>Why could be wrong?</p>

<p>This is part of my code:</p>

<pre><code>boolean isNetworkEnabled = false;

    locationManager = (LocationManager) c
            .getSystemService(this.c.LOCATION_SERVICE);

    // getting network status
    isNetworkEnabled = locationManager
            .isProviderEnabled(LocationManager.NETWORK_PROVIDER);

Toast.makeText(c.getApplicationContext(), "Obteniendo network provider = "+isNetworkEnabled, Toast.LENGTH_SHORT).show();

    if (isNetworkEnabled) { 
        Log.i(LOGTAG, "obtiene localizaciones de network provider NET.... ");
        ret = 0;
        LocationManager lm = (LocationManager) c
                .getSystemService(c.LOCATION_SERVICE);
        myloc = null;
        myloc = new mylocationlistener();
        LocationListener locationListener = myloc;
        Log.i(LOGTAG, "myloc.... latitude=" + myloc.getLatitude()
                + " Longitude=" + myloc.getLongitud());
        Toast.makeText(c.getApplicationContext(), "conectandose AGPS...lat = "+myloc.getLatitude()+ " Longitud = "+myloc.getLongitud(), Toast.LENGTH_SHORT).show();
        lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0,
                locationListener);                  
    } else {

        ret = -1;
    }
</code></pre>
