I am able to get current location using gps connection only after half an hour in Android?
<p>I am working in location based project. I am able to get current location in some android mobiles quicker. But I am able to get current location in some android mobiles, only after some half an hour. I only need to use GPS connection. So, I disabled "Use wireless networks" and enabled "Use GPS satellites". I need to finish it soon. Please give some solution to fix it. Thanks in Advance.</p>

<p>The Coding Which I am using is as follows:</p>

<pre><code>LocationManager locationManager;

String context = Context.LOCATION_SERVICE;

locationManager = (LocationManager)getSystemService(context);

Criteria crta = new Criteria();

crta.setAccuracy(Criteria.ACCURACY_FINE);

crta.setAltitudeRequired(false);

crta.setBearingRequired(false);

crta.setCostAllowed(true);
                                                                                           crta.setPowerRequirement(Criteria.POWER_LOW);

//String provider = locationManager.getBestProvider(crta, true);                                         

String provider = LocationManager.GPS_PROVIDER;

Location location = locationManager.getLastKnownLocation(provider);

updateWithNewLocation(location);

locationManager.requestLocationUpdates(provider, 1000, 1, locationListener);
</code></pre>

<p>I dont know why, In some mobile I am able to get the current location quicker. 
But later in some other mobiles. Please give me some solution as soon as possible. Please help me my code is working by the way.</p>
