googlemaps-samples / android-samples

Samples demonstrating how to use Maps SDK for Android
https://developers.google.com/maps/documentation/android-sdk/
Apache License 2.0
2.42k stars 3k forks source link

Current Location #63

Closed gelaiye closed 4 years ago

gelaiye commented 7 years ago

I'am chiness , I hava a problem , when I use this demo, "mLastKnownLocation" always equals null , so I can't get Latitude and Longitude, In my project , I only need Latitude and Longitude ,so I am not use Google Map , then cause this problem. ( mLastKnownLocation = LocationServices.FusedLocationApi .getLastLocation(mGoogleApiClient); ) , I want you help me solve this problem , thank you!

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

wangela commented 4 years ago

Fixed with null check in PR #141