how to get my current longitude and latitude from my android device
<p>I am using this code.but getting null in longitude and latitude.</p>

<p>LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);<br>
                 Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);  </p>

<p>please help me</p>

<p>Thank you</p>
