title: NETWORK_PROVIDER is not giving location updates
body: <p>My program worked well, but suddenly <code>NETWORK_PROVIDER</code> stoped giving location updates.
  It also don't works if WIFI is enabled.
  Someone knows why?</p>
  
  <p>Thank you!</p>
  
  <p>Here is some (crypled) Java:</p>
  
  <pre><code>package com.tripr;
  
  public class MyWallpaperService extends WallpaperService{
  
  
  
      &lt;snip&gt;
  
  
      @Override
      public Engine onCreateEngine() {
          return new CubeEngine(this);
      }
  
  
      class CubeEngine extends Engine  implements LocationListener{
  
          private MyWallpaperService mws;
          private LocationManager lm;
  
  
          &lt;snip&gt;
  
  
          CubeEngine(MyWallpaperService mymws) {
              mws = mymws;
  
              lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
              requestLocationUpdates();
              MyThread myThread = new MyThread(lm.getLastKnownLocation(LocationManager.NETWORK_PROVIDER));
              myThread.start();
          }
  
      void requestLocationUpdates(){
              lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000*30, 10, this);
          }
  
          void removeUpdates(){
              lm.removeUpdates(this);
          }
  
  
          @Override
          public void onLocationChanged(Location location) {
              MyThread myThread = new MyThread(location);
              myThread.start();
  
          }
  
          &lt;snip&gt;
  }
  </code></pre>
  
  <p>and the manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.tripr"
        android:versionCode="1"
        android:versionName="1.0"&gt;
      &lt;uses-sdk android:minSdkVersion="7" /&gt;
  
    &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
  
    &lt;uses-feature android:name="android.software.live_wallpaper" /&gt;
  
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
  
          &lt;service android:name=".MyWallpaperService"
              android:label="@string/app_name"
              android:icon="@drawable/icon"
              android:permission="android.permission.BIND_WALLPAPER"&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.service.wallpaper.WallpaperService" /&gt;
              &lt;/intent-filter&gt;
              &lt;meta-data android:name="android.service.wallpaper"
                  android:resource="@xml/livewallpaper" /&gt;
  
          &lt;/service&gt;
  
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>