title: onlocationchanged not called in Android
body: <p>I'm trying to get current device location using LocationListener method in Android. In some phones it doesn't work or  onlocationchanged is not called. How do I get location in such cases ?
  In oncreate :</p>
  
  <pre><code>mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
  mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10, 0, this);
  mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this);
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>@Override
      public void onLocationChanged(Location location) {
  
          latitude = location.getLatitude();
          longitude = location.getLongitude();
          Log.e("TAG","lat and long "+latitude+" "+longitude);
  }
  
      @Override
      public void onStatusChanged(String s, int i, Bundle bundle) {
  
      }
  
      @Override
      public void onProviderEnabled(String s) {
  
      }
  
      @Override
      public void onProviderDisabled(String s) {
  
      }
  </code></pre>
  
  <p>But onLocationChanged is not called in versions below Marshmallow </p>