I wanted to get the manually set GPS latitude and longitude for my emulator in the main activity because getLastKnownLocation(LocationManager.GPS_PROVIDER);
is returning null location. As seen in many posts here, I tried adding the LocationListener and call
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this)
But my code is never going inside the onLocationChanged function and hence my app is unable to get the location which I manually entered. Can anyone help me understand what I am missing here?
How can I fetch the manually entered latitude and longitude in my emulator settings?