Network listener doesnt get points
<p>I have a problem with my locationListener.</p>

<p>This is my "MyLocationListenerNetWork":</p>

<pre><code>public class MyLocationListenerNetwork implements LocationListener {

    public MyLocationListenerNetwork(){
        super();
    }

    @Override
    public void onLocationChanged(Location loc) {
        if(loc!=null){

        }
    }

    @Override
    public void onProviderDisabled(String pDisabled) {
            }

    @Override
    public void onProviderEnabled(String pEnabled) {
        }

    @Override
    public void onStatusChanged(String provider, int status, Bundle extras) {
    }
}
</code></pre>

<p>The point is that, i have a Service, where i want to "request" the listener to take the network points. I do like this in my onCreate()</p>

<pre><code>LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
            locationListenerNetwork = new MyLocationListenerNetwork();
            if(locationListenerNetwork!=null)
                lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 
                        0, 0, locationListenerNetwork);
</code></pre>

<p>It gets points without problems. The problem is that it consume a lot of battery, if I let it on all the time, it consume 30-40% of the battery. I would like to turn it on only a period of time.
That´s why inside the service i have a Thread, and inside this thread, i turn on the listener only for a period of time(5minutes), but when I do that, the listener doesn´t retrieve any point....</p>

<p>Anyone knows why?</p>
