title: Android GoogleMaps v1 LocationManager working odd on 4.4 kitkat
body: <p>I have an application that used to locate a user's location with this code</p>
  
  <pre><code>public static Location getCurrentLocation(Context context) {
      LocationManager lm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
      Criteria c = new Criteria();
      String provider = lm.getBestProvider(c, true);
      Location location;
      if (provider == null) {
          location = new Location("gps");
          location.setLatitude(U.LATITUDE);
          location.setLongitude(U.LONGITUDE);
      } else {
          location = lm.getLastKnownLocation(provider);
          if (location == null) {
              location = new Location("gps");
              location.setLatitude(U.LATITUDE);
              location.setLongitude(U.LONGITUDE);
          }
      }
      return location;
  }
  </code></pre>
  
  <p>This code appears to only be returning the behavior when provider is null or location is null. My guess is that something changed in this code.</p>
  
  <pre><code>String provider = lm.getBestProvider(c, true);
  </code></pre>