title: How to get latitude and longitude without using internet?
body: <p>Can we get device's current latitude and longitude with out using internet?
  I am using following codes..
  I am triggering the location listener after the button click.            </p>
  
  <pre><code>        locationListener = new MyLocationListener();
          location.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 5000, 20, locationListener);
  
  
    private class MyLocationListener implements LocationListener 
    {
      @Override
      public void onLocationChanged(Location loc) 
      {
          longitude = String.valueOf(loc.getLongitude());  
          latitude = String.valueOf(loc.getLatitude());
                    ...
      }
  }
  </code></pre>
  
  <p>It fetches longitude and latitude values fine when its connected to internet but returns null when not connected to internet.</p>
  
  <p>What could be the problem? Does LocationManager.NETWORK_PROVIDER, 5000, 20, locationListener need internet to get lat and long?</p>
  
  <p>If internet is required then what's the difference between network provider NETWORK_PROVIDER and GPS_PROVIDER ?</p>