Android Gps location
<p>I enabled the GPS in my device but I am not getting the loaction:</p>

<pre><code>LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); 
if(lm.isProviderEnabled(LocationManager.GPS_PROVIDER))
{
    Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
    if(location!=null)
    {
        showCurrentAddress(location);
    }
}
</code></pre>

<p>But here I am gettin location is null and I added the following permissions to my code:</p>

<pre><code>&lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; 
&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; 
</code></pre>

<p>Could you please help?</p>
