title: GPS provider not return my current location android
body: <p>I am trying to get user current location but my onLocationChanged method never get called.I have added permissions in Manifest.xml also,But onLocationChange method never get called.
  I have open GPS of my device and try it on two different mobile but not working.
  Below is my code - </p>
  
  <pre><code>public class LocationAwareActivity extends Activity implements
           LocationListener {
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      LocationManager locationManager = (LocationManager)
              getSystemService(Context.LOCATION_SERVICE);
      locationManager.requestLocationUpdates(
      LocationManager.GPS_PROVIDER, 1000, 1, this);
  
  }
  
  
  @Override
  public void onLocationChanged(Location location) {
      Toast.makeText(this, "Current onLocationChanged : "+location.getLatitude()+" , "+location.getLongitude(), Toast.LENGTH_SHORT).show();
  }
  
  @Override
  public void onStatusChanged(String provider, int status, Bundle extras) {
      Toast.makeText(this, "onStatusChanged", Toast.LENGTH_SHORT).show();
  }
  
  @Override
  public void onProviderEnabled(String provider) {
      Toast.makeText(this, "onProviderEnabled", Toast.LENGTH_SHORT).show();
  }
  
  @Override
  public void onProviderDisabled(String provider) {
      Toast.makeText(this, "onProviderDisabled", Toast.LENGTH_SHORT).show();
  }
  </code></pre>
  
  <p>and below is code of manifest.xml - </p>
  
  <pre><code> &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
   &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
   &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
   &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  
  &lt;uses-feature
      android:glEsVersion="0x00020000"
      android:required="true"/&gt;
  </code></pre>
  
  <p>TIA</p>