get location without google play services -android
I know some phones do not preinstall google play sevice. I want to ask is there possible way to get location without Google Play Services , just use LocationManager. Not LocationClient.
you can use LocationManager
LocationManager locationManager = (LocationManager) getApplicationContext().getSystemService(LOCATION_SERVICE); Location location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
Just use the location manager like you said
USe a LocationManager and set the appropriate provider, GPS or NETWORK. you can get periodic updates or a single update using the requestLocationUpdates() and the getLastKnownLocation() methods respectively. Lastly, get a Location object and retrieve the latitude, longitude by calling the required methods on the Location object.