title: Location mapping not returning on different devices
body: <p>I have this code for getting the long and lat coordinates.</p>
  
  <pre><code>String bestProvider;
  LocationManager lm = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
  
  Criteria criteria = new Criteria();
  bestProvider = lm.getBestProvider(criteria, true);
  Location location = lm.getLastKnownLocation(bestProvider);
  
       if (location == null){
        }else{
          geocoder = new Geocoder(this);
          try {
          setLat((double)location.getLatitude());
          setLng((double)location.getLongitude());
  
          }catch (Exception e) {
                  e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>I tried using different devices. Some returns a value for lat and long. Some do not. All devices were connected to the internet and gps enabled. Do you guys have any idea on what is causing this? Thanks!</p>