title: Change my location provider in android, when there is no proper location updates from GPS provider
body: <p>I need to track users location at regular time intervals. </p>
  
  <p>For this, I am calling requestLocationUpdates() in the onCreate method of my service.</p>
  
  <pre><code>@Override
  public void onCreate()
  {
  LocationManager aLocationManager = (LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE);
  
  aLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME, MIN_DISTANCE, new LocationListener(LocationManager.GPS_PROVIDER));
  }
  </code></pre>
  
  <p>Normally I get location updates in regular time intervals through this GPS_PROVIDER. However, in some area, I was not able to get location updates properly. In such points, I like to switch my requestLocationUpdates call to use the NETWORK_PROVIDER.</p>
  
  <p>So that, when I cant get proper location updates from GPS_PROVIDER, I can switch my requestLocationUpdates to use the NETWORK_PROVIDER.</p>
  
  <p>How can I do this? Is it correct to have some sort of condition checked and change my requestLocationUpdates() in onStatusChanged().</p>
  
  <p>Suggestions please.</p>
  
  <p>Thank you.</p>