i dont understand why locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
return the location null. I gave all permission but its reutning
When you use GPS as provider then it gives your result with in 1 to 2 mnts so you have to contentiously check for that when get location stop and Network Provider gives you immediate locationwhen you request. So you dont get immediate Location lat lon in GPS provider.
GPS take 1 to 2 only first time then after it will give location you on call...