title: finding users latitudes and longitudes inside closed location
body: <p>I have been working on an android app to find the location of the user device even he is in the closed location. </p>
  
  <p>I am trying to use the following code:</p>
  
  <pre><code>LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
  Criteria criteria = new Criteria();
  criteria.setAccuracy(Criteria.ACCURACY_FINE);
  criteria.setAltitudeRequired(false);
  criteria.setBearingRequired(false);
  criteria.setCostAllowed(true);
  criteria.setPowerRequirement(Criteria.POWER_LOW);
  String provider = lm.getBestProvider(criteria, true);
  Location location = lm.getLastKnownLocation(provider);
  </code></pre>
  
  <p>by using this code i was able to get the locations when i go to the open sky but not in the room.</p>
  
  <p>please let me know how if any thing is unclear.</p>
  
  <p>Thanks in advance.</p>